Class GovernedAssetHandler
java.lang.Object
org.odpi.openmetadata.accessservices.securityofficer.server.handler.GovernedAssetHandler
ConnectionHandler retrieves Connection objects from the property handlers. It runs handlers-side in the AssetConsumer
OMAS and retrieves Connections through the OMRSRepositoryConnector.
-
Constructor Summary
ConstructorsConstructorDescriptionGovernedAssetHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler repositoryHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler errorHandler, List<String> supportedZones) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsGovernedClassification(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAssetconvertGovernedAsset(String userID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity) createSoftwareServerCapability(String userId, org.odpi.openmetadata.accessservices.securityofficer.api.model.SoftwareServerCapability softwareServerCapability) org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAssetgetGovernedAsset(String userId, String assedID) List<org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset>Returns the list of governed assets with associated tagsorg.odpi.openmetadata.accessservices.securityofficer.api.model.SoftwareServerCapabilitygetSoftwareServerCapabilityByGUID(String userId, String guid) booleanisSchemaElement(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType entityType) voidsetSecurityVerifier(org.odpi.openmetadata.metadatasecurity.server.OpenMetadataServerSecurityVerifier securityVerifier)
-
Constructor Details
-
GovernedAssetHandler
public GovernedAssetHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler repositoryHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler errorHandler, List<String> supportedZones) 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 handler
-
-
Method Details
-
setSecurityVerifier
public void setSecurityVerifier(org.odpi.openmetadata.metadatasecurity.server.OpenMetadataServerSecurityVerifier securityVerifier) -
getGovernedAssets
public List<org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset> getGovernedAssets(String userId, List<String> entityTypes, Integer offset, Integer pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Returns the list of governed assets with associated tags- Parameters:
userId- - String - userId of user making request.entityTypes- - types to start query offset.- Returns:
- List of Governed Access
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
-
getGovernedAsset
public org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset getGovernedAsset(String userId, String assedID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-
containsGovernedClassification
public boolean containsGovernedClassification(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) -
isSchemaElement
public boolean isSchemaElement(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType entityType) -
createSoftwareServerCapability
public String createSoftwareServerCapability(String userId, org.odpi.openmetadata.accessservices.securityofficer.api.model.SoftwareServerCapability softwareServerCapability) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException
-
getSoftwareServerCapabilityByGUID
public org.odpi.openmetadata.accessservices.securityofficer.api.model.SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-
convertGovernedAsset
public org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset convertGovernedAsset(String userID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-