Interface OpenMetadataServiceSecurity


  • public interface OpenMetadataServiceSecurity
    OpenMetadataServiceSecurity provides the interface for a plugin connector that validates whether a calling user can access a specific metadata service. It is called within the context of a specific OMAG Server. Each OMAG Server can define its own plugin connector implementation and will have its own instance of the connector. However the server name is supplied so a single connector can use it for logging error messages and locating the valid user list for the server.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void validateUserForService​(java.lang.String userId, java.lang.String serviceName)
      Check that the calling user is authorized to issue this request.
      void validateUserForServiceOperation​(java.lang.String userId, java.lang.String serviceName, java.lang.String operationName)
      Check that the calling user is authorized to issue this specific request.
    • Method Detail

      • validateUserForService

        void validateUserForService​(java.lang.String userId,
                                    java.lang.String serviceName)
                             throws UserNotAuthorizedException
        Check that the calling user is authorized to issue this request.
        Parameters:
        userId - calling user
        serviceName - name of called service
        Throws:
        UserNotAuthorizedException - the user is not authorized to access this service
      • validateUserForServiceOperation

        void validateUserForServiceOperation​(java.lang.String userId,
                                             java.lang.String serviceName,
                                             java.lang.String operationName)
                                      throws UserNotAuthorizedException
        Check that the calling user is authorized to issue this specific request.
        Parameters:
        userId - calling user
        serviceName - name of called service
        operationName - name of called operation
        Throws:
        UserNotAuthorizedException - the user is not authorized to access this service