public class GovernedAssetHandler extends Object
| Constructor and Description |
|---|
GovernedAssetHandler(OMRSRepositoryConnector repositoryConnector)
Construct the connection handler with a link to the property handlers's connector and this access service's
official name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsGovernedClassification(EntityDetail entityDetail) |
SoftwareServerCapability |
createSoftwareServerCapability(String userId,
SoftwareServerCapability softwareServerCapability) |
GovernedAsset |
getGovernedAsset(EntityDetail entity) |
GovernedAsset |
getGovernedAsset(String userId,
String assetGuid)
Returns the list of governed assets with associated tags
|
List<GovernedAsset> |
getGovernedAssets(String userId,
List<String> type)
Returns the list of governed assets with associated tags
|
SoftwareServerCapability |
getSoftwareServerCapabilityByGUID(String userId,
String guid) |
boolean |
isSchemaElement(EntityDetail entityDetail) |
public GovernedAssetHandler(OMRSRepositoryConnector repositoryConnector) throws MetadataServerException
repositoryConnector - - connector to the property handlers.MetadataServerException - - there is a problem retrieving information from the metadata serverpublic List<GovernedAsset> getGovernedAssets(String userId, List<String> type) throws InvalidParameterException, EntityProxyOnlyException, TypeErrorException, FunctionNotSupportedException, PropertyErrorException, EntityNotKnownException, TypeDefNotKnownException, PagingErrorException, UserNotAuthorizedException, InvalidParameterException, RepositoryErrorException, ClassificationErrorException
userId - - String - userId of user making request.type - - types to start query from.InvalidParameterException - bad parameterEntityProxyOnlyException - full entity not availableTypeErrorException - error in typeFunctionNotSupportedException - function not supportedPropertyErrorException - bad property parameterEntityNotKnownException - unknown entityTypeDefNotKnownException - unknown typePagingErrorException - bad paging parametersUserNotAuthorizedException - user not authorizedInvalidParameterException - bad parameterRepositoryErrorException - repository not availableClassificationErrorException - invalid classificationpublic GovernedAsset getGovernedAsset(String userId, String assetGuid) throws InvalidParameterException, EntityProxyOnlyException, TypeErrorException, FunctionNotSupportedException, PropertyErrorException, EntityNotKnownException, TypeDefNotKnownException, PagingErrorException, UserNotAuthorizedException, InvalidParameterException, RepositoryErrorException
userId - - String - userId of user making request.assetGuid - - guid of the asset component.InvalidParameterException - - one of the parameters is null or invalid.EntityProxyOnlyExceptionTypeErrorExceptionFunctionNotSupportedExceptionPropertyErrorExceptionEntityNotKnownExceptionTypeDefNotKnownExceptionPagingErrorExceptionUserNotAuthorizedExceptionInvalidParameterExceptionRepositoryErrorExceptionpublic boolean containsGovernedClassification(EntityDetail entityDetail)
public boolean isSchemaElement(EntityDetail entityDetail) throws UserNotAuthorizedException, RepositoryErrorException, InvalidParameterException, TypeDefNotKnownException
public GovernedAsset getGovernedAsset(EntityDetail entity) throws EntityProxyOnlyException, TypeErrorException, TypeDefNotKnownException, PropertyErrorException, EntityNotKnownException, FunctionNotSupportedException, PagingErrorException, UserNotAuthorizedException, InvalidParameterException, RepositoryErrorException
public SoftwareServerCapability createSoftwareServerCapability(String userId, SoftwareServerCapability softwareServerCapability) throws ClassificationErrorException, StatusNotSupportedException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, RepositoryErrorException, PropertyErrorException, TypeErrorException
public SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws UserNotAuthorizedException, RepositoryErrorException, EntityProxyOnlyException, InvalidParameterException, EntityNotKnownException
Copyright © 2018–2020 ODPi. All rights reserved.