Class SecurityOfficerRequestHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.securityofficer.server.handler.SecurityOfficerRequestHandler
-
public class SecurityOfficerRequestHandler extends Object
SecurityOfficerRequestHandler supports REST requests for security officer function.
-
-
Constructor Summary
Constructors Constructor Description SecurityOfficerRequestHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSMetadataCollection metadataCollection, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler, List<String> supportedZones, SecurityOfficerPublisher securityOfficerPublisher)Construct the handler information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SecuritySchemaElement>deleteSecurityTagBySchemaElementId(String userId, String schemaElementId, String methodName)List<SecurityClassification>getAvailableSecurityTags(String userId, String methodName)SecurityClassificationgetSecurityTagBySchemaElementId(String userId, String schemaElementId, String methodName)List<SecuritySchemaElement>updateSecurityTagBySchemaElementId(String userId, String schemaElementId, SecurityClassification securityClassification, String methodName)
-
-
-
Constructor Detail
-
SecurityOfficerRequestHandler
public SecurityOfficerRequestHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSMetadataCollection metadataCollection, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler, List<String> supportedZones, SecurityOfficerPublisher securityOfficerPublisher)
Construct the handler information needed to interact with the repository services- Parameters:
serviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectserrorHandler- provides utilities for manipulating the repository servicessupportedZones- setting of the supported zones for the handlersecurityOfficerPublisher- outbound publisher
-
-
Method Detail
-
getSecurityTagBySchemaElementId
public SecurityClassification getSecurityTagBySchemaElementId(String userId, String schemaElementId, String methodName) throws PropertyServerException
- Throws:
PropertyServerException
-
updateSecurityTagBySchemaElementId
public List<SecuritySchemaElement> updateSecurityTagBySchemaElementId(String userId, String schemaElementId, SecurityClassification securityClassification, String methodName) throws PropertyServerException, RepositoryErrorException, ClassificationErrorException, UserNotAuthorizedException, EntityNotKnownException, FunctionNotSupportedException, InvalidParameterException, PropertyErrorException, EntityProxyOnlyException, TypeDefNotKnownException, TypeErrorException, PagingErrorException
- Throws:
PropertyServerExceptionRepositoryErrorExceptionClassificationErrorExceptionUserNotAuthorizedExceptionEntityNotKnownExceptionFunctionNotSupportedExceptionInvalidParameterExceptionPropertyErrorExceptionEntityProxyOnlyExceptionTypeDefNotKnownExceptionTypeErrorExceptionPagingErrorException
-
deleteSecurityTagBySchemaElementId
public List<SecuritySchemaElement> deleteSecurityTagBySchemaElementId(String userId, String schemaElementId, String methodName) throws PropertyServerException, RepositoryErrorException, UserNotAuthorizedException, EntityProxyOnlyException, InvalidParameterException, EntityNotKnownException, ClassificationErrorException, TypeErrorException, TypeDefNotKnownException, PagingErrorException, FunctionNotSupportedException, PropertyErrorException
- Throws:
PropertyServerExceptionRepositoryErrorExceptionUserNotAuthorizedExceptionEntityProxyOnlyExceptionInvalidParameterExceptionEntityNotKnownExceptionClassificationErrorExceptionTypeErrorExceptionTypeDefNotKnownExceptionPagingErrorExceptionFunctionNotSupportedExceptionPropertyErrorException
-
getAvailableSecurityTags
public List<SecurityClassification> getAvailableSecurityTags(String userId, String methodName) throws PropertyServerException, RepositoryErrorException, InvalidParameterException, TypeDefNotKnownException, UserNotAuthorizedException, TypeErrorException, FunctionNotSupportedException, ClassificationErrorException, PagingErrorException, PropertyErrorException
-
-