public class DataAssetExchangeHandler extends ExchangeHandlerBase
| Constructor and Description |
|---|
DataAssetExchangeHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the data asset exchange handler with information needed to work with asset related objects
for Asset Manager OMAS.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAssetAsReferenceData(String userId,
String assetGUID,
String methodName)
Remove the reference data designation from the asset.
|
String |
createAsset(String userId,
MetadataCorrelationProperties correlationProperties,
boolean assetManagerIsHome,
AssetProperties assetProperties,
String methodName)
Create a new metadata element to represent the root of an asset.
|
String |
createAssetFromTemplate(String userId,
MetadataCorrelationProperties correlationProperties,
String templateGUID,
TemplateProperties templateProperties,
String methodName)
Create a new metadata element to represent an asset using an existing metadata element as a template.
|
List<AssetElement> |
findAssets(String userId,
String assetManagerGUID,
String assetManagerName,
String searchString,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of asset metadata elements that contain the search string.
|
AssetElement |
getAssetByGUID(String userId,
String assetManagerGUID,
String assetManagerName,
String openMetadataGUID,
String methodName)
Retrieve the asset metadata element with the supplied unique identifier.
|
List<AssetElement> |
getAssetsByName(String userId,
String assetManagerGUID,
String assetManagerName,
String name,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of asset metadata elements with a matching qualified or display name.
|
List<AssetElement> |
getAssetsForAssetManager(String userId,
String assetManagerGUID,
String assetManagerName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of assets created on behalf of the named asset manager.
|
void |
publishAsset(String userId,
String assetGUID,
String methodName)
Update the zones for the asset so that it becomes visible to consumers.
|
void |
removeAsset(String userId,
MetadataCorrelationProperties correlationProperties,
String assetGUID,
String methodName)
Remove the metadata element representing an asset.
|
void |
setAssetAsReferenceData(String userId,
String assetGUID,
String methodName)
Classify the asset to indicate that it can be used as reference data.
|
void |
updateAsset(String userId,
MetadataCorrelationProperties correlationProperties,
String assetGUID,
boolean isMergeUpdate,
AssetProperties assetProperties,
String methodName)
Update the metadata element representing an asset.
|
void |
withdrawAsset(String userId,
String assetGUID,
String methodName)
Update the zones for the asset so that it is no longer visible to consumers.
|
public DataAssetExchangeHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
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 objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve instances from.defaultZones - list of zones that the access service should set in all new instances.publishZones - list of zones that the access service sets up in published instances.auditLog - destination for audit log events.public String createAsset(String userId, MetadataCorrelationProperties correlationProperties, boolean assetManagerIsHome, AssetProperties assetProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercorrelationProperties - properties to help with the mapping of the elements in the external asset manager and open metadataassetManagerIsHome - ensure that only the asset manager can update this assetassetProperties - properties to storemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createAssetFromTemplate(String userId, MetadataCorrelationProperties correlationProperties, String templateGUID, TemplateProperties templateProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercorrelationProperties - properties to help with the mapping of the elements in the external asset manager and open metadatatemplateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templatemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateAsset(String userId, MetadataCorrelationProperties correlationProperties, String assetGUID, boolean isMergeUpdate, AssetProperties assetProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercorrelationProperties - properties to help with the mapping of the elements in the external asset manager and open metadataassetGUID - unique identifier of the metadata element to updateisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?assetProperties - new properties for this elementmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void publishAsset(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the metadata element to publishmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void withdrawAsset(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the metadata element to withdrawmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeAsset(String userId, MetadataCorrelationProperties correlationProperties, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercorrelationProperties - properties to help with the mapping of the elements in the external asset manager and open metadataassetGUID - unique identifier of the metadata element to removemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setAssetAsReferenceData(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the metadata element to updatemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearAssetAsReferenceData(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the metadata element to removemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<AssetElement> findAssets(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<AssetElement> getAssetsByName(String userId, String assetManagerGUID, String assetManagerName, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callername - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<AssetElement> getAssetsForAssetManager(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public AssetElement getAssetByGUID(String userId, String assetManagerGUID, String assetManagerName, String openMetadataGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the calleropenMetadataGUID - unique identifier of the requested metadata elementmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2020 ODPi. All rights reserved.