public class ExternalReferencesHandler extends Object implements ExternalReferenceManagementInterface
| Constructor and Description |
|---|
ExternalReferencesHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
RepositoryErrorHandler errorHandler)
Construct the discovery engine configuration handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteExternalReference(String userId,
String externalReferenceGUID,
String externalReferenceId)
Delete an external reference.
|
List<ExternalReference> |
findExternalReferencesById(String userId,
String resourceId,
int startFrom,
int pageSize)
Retrieve the list of external references for this resourceId.
|
List<ExternalReference> |
findExternalReferencesByURL(String userId,
String url,
int startFrom,
int pageSize)
Retrieve the list of external references for the supplied URL.
|
ExternalReference |
getExternalReference(String userId,
String externalReferenceGUID)
Retrieve the external reference for this unique identifier (guid).
|
void |
linkExternalReference(String userId,
String attachedToGUID,
String linkId,
String linkDescription,
String externalReferenceGUID)
Link an external reference to an object.
|
List<ExternalReference> |
retrieveAttachedExternalReferences(String userId,
String attachedToGUID,
int startFrom,
int pageSize)
Retrieve the list of external references attached to the supplied object.
|
String |
storeExternalReference(String userId,
String attachedToGUID,
String linkId,
String linkDescription,
String resourceId,
String resourceDisplayName,
String resourceDescription,
String resourceURL,
String resourceVersion,
String owningOrganization,
Map<String,Object> resourceProperties,
Map<String,String> additionalProperties)
Store a new external reference.
|
void |
unlinkExternalReference(String userId,
String attachedToGUID,
String externalReferenceGUID)
Unlink an external reference from an object.
|
public ExternalReferencesHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, RepositoryErrorHandler errorHandler)
serviceName - name of the consuming serviceserverName - name of this server instanceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository serviceserrorHandler - handler for repository service errorspublic List<ExternalReference> findExternalReferencesById(String userId, String resourceId, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findExternalReferencesById in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.resourceId - unique reference id assigned by the resource owner (supports wildcards).startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<ExternalReference> findExternalReferencesByURL(String userId, String url, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findExternalReferencesByURL in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.url - URL of the external resource.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public ExternalReference getExternalReference(String userId, String externalReferenceGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getExternalReference in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.externalReferenceGUID - unique identifier (guid) of the external reference details.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<ExternalReference> retrieveAttachedExternalReferences(String userId, String attachedToGUID, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
retrieveAttachedExternalReferences in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.attachedToGUID - object linked to external reference.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void linkExternalReference(String userId, String attachedToGUID, String linkId, String linkDescription, String externalReferenceGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
linkExternalReference in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.attachedToGUID - object linked to external references.linkId - identifier for the reference from the perspective of the object that the reference is being attached to.linkDescription - description for the reference from the perspective of the object that the reference is being attached to.externalReferenceGUID - unique identifier (guid) of the external reference details.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void unlinkExternalReference(String userId, String attachedToGUID, String externalReferenceGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
unlinkExternalReference in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.attachedToGUID - object linked to external references.externalReferenceGUID - identifier of the external reference.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public String storeExternalReference(String userId, String attachedToGUID, String linkId, String linkDescription, String resourceId, String resourceDisplayName, String resourceDescription, String resourceURL, String resourceVersion, String owningOrganization, Map<String,Object> resourceProperties, Map<String,String> additionalProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
storeExternalReference in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.attachedToGUID - object linked to external references.linkId - identifier for the reference from the perspective of the object that the reference is being attached to.linkDescription - description for the reference from the perspective of the object that the reference is being attached to.resourceId - unique reference id assigned by the resource owner.resourceDisplayName - display name for the resource.resourceDescription - generic description of the resource.resourceURL - URL to access the resource.resourceVersion - version number of the resource.owningOrganization - organization the owns the resource.resourceProperties - properties defined as part of a subclass of ExternalReferenceadditionalProperties - arbitrary additional properties.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void deleteExternalReference(String userId, String externalReferenceGUID, String externalReferenceId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
deleteExternalReference in interface ExternalReferenceManagementInterfaceuserId - the name of the calling user.externalReferenceGUID - unique identifier (guid) of the external reference.externalReferenceId - unique name of the external reference.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.