public abstract class AttachmentHandlerBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected InvalidParameterHandler |
invalidParameterHandler |
protected LastAttachmentHandler |
lastAttachmentHandler |
protected RepositoryHandler |
repositoryHandler |
protected OMRSRepositoryHelper |
repositoryHelper |
protected String |
serverName |
protected String |
serviceName |
| Constructor and Description |
|---|
AttachmentHandlerBase(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
LastAttachmentHandler lastAttachmentHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
countAttachments(String userId,
String anchorGUID,
String anchorTypeName,
String attachmentTypeGUID,
String attachmentTypeName,
String methodName)
Count up the number of elements of a certain type that are attached to an anchor entity.
|
List<Relationship> |
getAttachmentLinks(String userId,
String anchorGUID,
String anchorTypeName,
String attachmentTypeGUID,
String attachmentTypeName,
int startingFrom,
int pageSize,
String methodName)
Return the relationships to required elements attached to an anchor entity.
|
List<EntityDetail> |
getAttachments(String userId,
String anchorGUID,
String anchorTypeName,
boolean anchorAtEnd1,
String attachmentTypeGUID,
String attachmentTypeName,
String entityTypeName,
int startingFrom,
int pageSize,
String methodName)
Return the entities for the required elements attached to an anchor entity.
|
protected String serviceName
protected String serverName
protected OMRSRepositoryHelper repositoryHelper
protected RepositoryHandler repositoryHandler
protected InvalidParameterHandler invalidParameterHandler
protected LastAttachmentHandler lastAttachmentHandler
public AttachmentHandlerBase(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, LastAttachmentHandler lastAttachmentHandler)
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 objectslastAttachmentHandler - handler for recording last attachmentprotected int countAttachments(String userId, String anchorGUID, String anchorTypeName, String attachmentTypeGUID, String attachmentTypeName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - unique identifier for the entity that the object is attached to (anchor entity)anchorTypeName - type of the anchor entityattachmentTypeGUID - unique identifier of the attachment's typeattachmentTypeName - unique name of the attachment's typemethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<Relationship> getAttachmentLinks(String userId, String anchorGUID, String anchorTypeName, String attachmentTypeGUID, String attachmentTypeName, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the identifier is attached toanchorTypeName - type name for anchorattachmentTypeGUID - unique identifier of the attachment's typeattachmentTypeName - unique name of the attachment's typestartingFrom - start position for resultspageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<EntityDetail> getAttachments(String userId, String anchorGUID, String anchorTypeName, boolean anchorAtEnd1, String attachmentTypeGUID, String attachmentTypeName, String entityTypeName, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the identifier is attached toanchorTypeName - type name for anchoranchorAtEnd1 - indicates which end to extract attachment fromattachmentTypeGUID - unique identifier of the attachment's typeattachmentTypeName - unique name of the attachment's typeentityTypeName - unique name of the attached entity's typestartingFrom - start position for resultspageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.