public abstract class SubjectAreaHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OMRSAPIHelper |
oMRSAPIHelper |
| Constructor and Description |
|---|
SubjectAreaHandler(OMRSAPIHelper oMRSAPIHelper)
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,
int offset,
int 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 OMRSAPIHelper oMRSAPIHelper
public SubjectAreaHandler(OMRSAPIHelper oMRSAPIHelper)
oMRSAPIHelper - omrs API helperprotected abstract SubjectAreaOMASAPIResponse getResponse(SubjectAreaOMASAPIResponse response)
response - entityDetailResponseprotected SubjectAreaOMASAPIResponse getRelationshipsFromGuid(String restAPIName, String userId, String guid, Date asOfTime, int offset, int 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.when not successful the following Exception responses can occur
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.