public class AssetHandler extends ReferenceableHandler
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
defaultZones |
protected List<String> |
publishZones |
protected List<String> |
supportedZones |
invalidParameterHandler, repositoryHandler, repositoryHelper, serverName, serviceName| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reclassifyAsset(String userId,
Asset originalAsset,
Asset updatedAsset,
InstanceProperties zoneMembershipProperties,
InstanceProperties ownerProperties,
String methodName)
Deprecated.
|
getRepositoryHelper, getServiceNamepublic AssetHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, List<String> supportedZones, List<String> publishZones, List<String> defaultZones)
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.@Deprecated public void reclassifyAsset(String userId, Asset originalAsset, Asset updatedAsset, InstanceProperties zoneMembershipProperties, InstanceProperties ownerProperties, String methodName) throws UserNotAuthorizedException, PropertyServerException
userId - userIdoriginalAsset - current content of the assetupdatedAsset - new asset valueszoneMembershipProperties - zone membership propertiesownerProperties - owner propertiesmethodName - calling methodUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.