Class SecurityOfficerRequestHandler
java.lang.Object
org.odpi.openmetadata.accessservices.securityofficer.server.handler.SecurityOfficerRequestHandler
SecurityOfficerRequestHandler supports REST requests for security officer function.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityOfficerRequestHandler
(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
Modifier and TypeMethodDescriptiondeleteSecurityTagBySchemaElementId
(String userId, String schemaElementId, String methodName) getAvailableSecurityTags
(String userId, String methodName) getSecurityTagBySchemaElementId
(String userId, String schemaElementId, String methodName) updateSecurityTagBySchemaElementId
(String userId, String schemaElementId, SecurityClassification securityClassification, String methodName)
-
Constructor Details
-
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 Details
-
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:
PropertyServerException
RepositoryErrorException
ClassificationErrorException
UserNotAuthorizedException
EntityNotKnownException
FunctionNotSupportedException
InvalidParameterException
PropertyErrorException
EntityProxyOnlyException
TypeDefNotKnownException
TypeErrorException
PagingErrorException
-
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:
PropertyServerException
RepositoryErrorException
UserNotAuthorizedException
EntityProxyOnlyException
InvalidParameterException
EntityNotKnownException
ClassificationErrorException
TypeErrorException
TypeDefNotKnownException
PagingErrorException
FunctionNotSupportedException
PropertyErrorException
-
getAvailableSecurityTags
public List<SecurityClassification> getAvailableSecurityTags(String userId, String methodName) throws PropertyServerException, RepositoryErrorException, InvalidParameterException, TypeDefNotKnownException, UserNotAuthorizedException, TypeErrorException, FunctionNotSupportedException, ClassificationErrorException, PagingErrorException, PropertyErrorException
-