Class AssetHandler
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.handlers.RootHandler
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.handlers.ReferenceableHandler
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.handlers.AssetHandler
-
public class AssetHandler extends ReferenceableHandler
AssetHandler manages Asset objects and optionally connections in the property server. It runs server-side in the OMAG Server Platform and retrieves Assets and Connections through the OMRSRepositoryConnector.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>defaultZonesprotected List<String>publishZonesprotected List<String>supportedZones-
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.handlers.RootHandler
invalidParameterHandler, repositoryHandler, repositoryHelper, serverName, serviceName
-
-
Constructor Summary
Constructors Constructor Description AssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, List<String> supportedZones, List<String> publishZones, List<String> defaultZones)Construct the asset handler with information needed to work with Asset objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidreclassifyAsset(String userId, Asset originalAsset, Asset updatedAsset, InstanceProperties zoneMembershipProperties, InstanceProperties ownerProperties, String methodName)Deprecated.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.handlers.RootHandler
getRepositoryHelper, getServiceName
-
-
-
-
Constructor Detail
-
AssetHandler
public AssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, List<String> supportedZones, List<String> publishZones, List<String> defaultZones)
Construct the asset handler with information needed to work with Asset objects.- Parameters:
serviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- handler for interfacing with the repository servicesrepositoryHelper- helper utilities for managing repository services objectssupportedZones- list of zones that the service is allowed to serve Assets from.publishZones- list of zones that the service should set in Assets when they are published.defaultZones- list of zones that the service should set in all new Assets and when they are withdrawn.
-
-
Method Detail
-
reclassifyAsset
@Deprecated public void reclassifyAsset(String userId, Asset originalAsset, Asset updatedAsset, InstanceProperties zoneMembershipProperties, InstanceProperties ownerProperties, String methodName) throws UserNotAuthorizedException, PropertyServerException
Deprecated.Reclassifies an asset based on the new properties.- Parameters:
userId- userIdoriginalAsset- current content of the assetupdatedAsset- new asset valueszoneMembershipProperties- zone membership propertiesownerProperties- owner propertiesmethodName- calling method- Throws:
UserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
-