public interface ExternalReferenceManagementInterface
| 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 this 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.
|
List<ExternalReference> findExternalReferencesById(String userId, String resourceId, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.List<ExternalReference> findExternalReferencesByURL(String userId, String url, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.ExternalReference getExternalReference(String userId, String externalReferenceGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.List<ExternalReference> retrieveAttachedExternalReferences(String userId, String attachedToGUID, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.void linkExternalReference(String userId, String attachedToGUID, String linkId, String linkDescription, String externalReferenceGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.void unlinkExternalReference(String userId, String attachedToGUID, String externalReferenceGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.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
userId - 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.void deleteExternalReference(String userId, String externalReferenceGUID, String externalReferenceId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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–2019 ODPi. All rights reserved.