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, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler, List<String> supportedZones) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsGovernedClassification
(EntityDetail entityDetail) convertGovernedAsset
(String userID, EntityDetail entity) createSoftwareServerCapability
(String userId, SoftwareServerCapability softwareServerCapability) getGovernedAsset
(String userId, String assedID) Returns the list of governed assets with associated tagsgetSoftwareServerCapabilityByGUID
(String userId, String guid) boolean
isSchemaElement
(InstanceType entityType) void
setSecurityVerifier
(OpenMetadataServerSecurityVerifier securityVerifier)
-
Constructor Details
-
GovernedAssetHandler
public GovernedAssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, 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
-
getGovernedAssets
public List<GovernedAsset> getGovernedAssets(String userId, List<String> entityTypes, Integer offset, Integer pageSize) throws UserNotAuthorizedException, PropertyServerException, 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:
UserNotAuthorizedException
PropertyServerException
InvalidParameterException
-
getGovernedAsset
public GovernedAsset getGovernedAsset(String userId, String assedID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException -
containsGovernedClassification
-
isSchemaElement
-
createSoftwareServerCapability
public String createSoftwareServerCapability(String userId, SoftwareServerCapability softwareServerCapability) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException -
getSoftwareServerCapabilityByGUID
public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException -
convertGovernedAsset
public GovernedAsset convertGovernedAsset(String userID, EntityDetail entity) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
-