public class ExternalReferencesHandler extends Object
| Constructor and Description |
|---|
ExternalReferencesHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler)
Construct the handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<ExternalReference> |
retrieveExternalReferences(String userId,
String attachedEntityGUID)
Retrieve the list of external references for this entity.
|
void |
storeExternalReferences(String userId,
String attachedEntityGUID,
List<ExternalReference> externalReferences)
Store the list of external references.
|
public ExternalReferencesHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler)
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 servicespublic void storeExternalReferences(String userId, String attachedEntityGUID, List<ExternalReference> externalReferences) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.attachedEntityGUID - entity linked to external referencesexternalReferences - links to addition information. This could be, for example, the home page
for the governance officer, or details of the role.InvalidParameterException - 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> retrieveExternalReferences(String userId, String attachedEntityGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.attachedEntityGUID - entity linked to external referencesInvalidParameterException - 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.