public abstract class SubjectAreaHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected InvalidParameterHandler |
invalidParameterHandler |
protected OMRSAPIHelper |
oMRSAPIHelper |
protected RepositoryHandler |
repositoryHandler |
protected OMRSRepositoryHelper |
repositoryHelper |
protected String |
serverName |
protected String |
serviceName |
| Constructor and Description |
|---|
SubjectAreaHandler() |
SubjectAreaHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
OMRSAPIHelper oMRSAPIHelper,
RepositoryErrorHandler errorHandler)
Construct the Subject Area Project Handler
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected SubjectAreaOMASAPIResponse |
getRelationshipsFromGuid(String restAPIName,
String userId,
String guid,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get relationships
|
protected abstract SubjectAreaOMASAPIResponse |
getResponse(SubjectAreaOMASAPIResponse response)
Take an entityDetail response and map it to the appropriate Project orientated response
|
protected SubjectAreaOMASAPIResponse |
validateGlossarySummaryDuringCreation(SubjectAreaGlossaryHandler glossaryHandler,
String userId,
String methodName,
GlossarySummary suppliedGlossary)
This method validated for creation.
|
protected String serviceName
protected String serverName
protected RepositoryHandler repositoryHandler
protected OMRSRepositoryHelper repositoryHelper
protected InvalidParameterHandler invalidParameterHandler
protected OMRSAPIHelper oMRSAPIHelper
public SubjectAreaHandler()
public SubjectAreaHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, OMRSAPIHelper oMRSAPIHelper, 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 errorsprotected abstract SubjectAreaOMASAPIResponse getResponse(SubjectAreaOMASAPIResponse response)
response - entityDetailResponseprotected SubjectAreaOMASAPIResponse getRelationshipsFromGuid(String restAPIName, String userId, String guid, Date asOfTime, Integer offset, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
restAPIName - ret API nameuserId - unique identifier for requesting user, under which the request is performedguid - guid of the term to getasOfTime - the relationships returned as they were at this time. null indicates at the current time. If specified, the date is in milliseconds since 1970-01-01 00:00:00.offset - the starting element number for this set of results. This is used when retrieving elements
beyond the first page of results. Zero means the results start from the first element.pageSize - the maximum number of elements that can be returned on this request.
0 means there is not limit to the page sizesequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.protected SubjectAreaOMASAPIResponse validateGlossarySummaryDuringCreation(SubjectAreaGlossaryHandler glossaryHandler, String userId, String methodName, GlossarySummary suppliedGlossary)
glossaryHandler - glossary handleruserId - userId under which the request is performedmethodName - method making the callsuppliedGlossary - glossary to validate against.Copyright © 2018–2020 ODPi. All rights reserved.