public class ReferenceableHandler extends Object
| Constructor and Description |
|---|
ReferenceableHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
List<Referenceable> |
getMoreInformation(String userId,
String elementGUID,
int startFrom,
int pageSize,
String methodName)
Returns the list of related assets for the asset.
|
Map<String,String> |
getVendorProperties(String userId,
String referenceableGUID,
String qualifiedName,
String methodName)
Retrieve the property facet for the vendor properties.
|
void |
setVendorProperties(String userId,
String referenceableGUID,
String qualifiedName,
Map<String,String> vendorProperties,
String methodName)
Create the property facet for the vendor properties.
|
public ReferenceableHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper)
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 objectspublic List<Referenceable> getMoreInformation(String userId, String elementGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - String userId of user making request.elementGUID - String unique id for asset.startFrom - int starting position for fist returned element.pageSize - int maximum number of elements to return on the call.methodName - String calling methodInvalidParameterException - - the GUID is not recognized or the paging values are invalid orPropertyServerException - - there is a problem retrieving the asset properties from the property server orUserNotAuthorizedException - - the requesting user is not authorized to issue this request.public void setVendorProperties(String userId, String referenceableGUID, String qualifiedName, Map<String,String> vendorProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userreferenceableGUID - unique identifier of the metadata elementqualifiedName - qualified name of the metadata elementvendorProperties - properties for the vendormethodName - calling methodInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic Map<String,String> getVendorProperties(String userId, String referenceableGUID, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userreferenceableGUID - unique identifier of the metadata elementqualifiedName - qualified name of the metadata elementmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2020 ODPi. All rights reserved.