Interface OpenMetadataServiceSecurity
-
public interface OpenMetadataServiceSecurityOpenMetadataServiceSecurity 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 voidvalidateUserForService(String userId, String serviceName)Check that the calling user is authorized to issue this request.voidvalidateUserForServiceOperation(String userId, String serviceName, String operationName)Check that the calling user is authorized to issue this specific request.
-
-
-
Method Detail
-
validateUserForService
void validateUserForService(String userId, String serviceName) throws UserNotAuthorizedException
Check that the calling user is authorized to issue this request.- Parameters:
userId- calling userserviceName- name of called service- Throws:
UserNotAuthorizedException- the user is not authorized to access this service
-
validateUserForServiceOperation
void validateUserForServiceOperation(String userId, String serviceName, String operationName) throws UserNotAuthorizedException
Check that the calling user is authorized to issue this specific request.- Parameters:
userId- calling userserviceName- name of called serviceoperationName- name of called operation- Throws:
UserNotAuthorizedException- the user is not authorized to access this service
-
-