public class SubjectAreaRelationshipHandler extends SubjectAreaHandler
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaRelationshipHandler(OMRSAPIHelper oMRSAPIHelper)
Construct the Subject Area Relationship Handler
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
createLine(String restAPIName,
String userId,
String className,
Line line)
Create a Line (relationship), which is a link between two Nodes.
|
SubjectAreaOMASAPIResponse |
deleteLine(String restAPIName,
String userId,
String className,
String guid,
Boolean isPurge)
Delete a Line (relationship)
|
SubjectAreaOMASAPIResponse |
getLine(String restAPIName,
String userId,
String className,
String guid)
Get a Line (relationship)
|
protected SubjectAreaOMASAPIResponse |
getResponse(SubjectAreaOMASAPIResponse response)
Take an entityDetail response and map it to the appropriate Project orientated response
|
SubjectAreaOMASAPIResponse |
restoreLine(String restAPIName,
String userId,
String className,
String guid)
Restore a Line (relationship).
|
SubjectAreaOMASAPIResponse |
updateLine(String restAPIName,
String userId,
String guid,
String className,
Line line,
boolean isReplace)
Update a relationship.
|
getRelationshipsFromGuid, validateGlossarySummaryDuringCreationpublic SubjectAreaRelationshipHandler(OMRSAPIHelper oMRSAPIHelper)
oMRSAPIHelper - omrs API helperprotected SubjectAreaOMASAPIResponse getResponse(SubjectAreaOMASAPIResponse response)
SubjectAreaHandlergetResponse in class SubjectAreaHandlerresponse - entityDetailResponsepublic SubjectAreaOMASAPIResponse createLine(String restAPIName, String userId, String className, Line line)
restAPIName - rest API nameuserId - userId under which the request is performedclassName - class nameline - line to createpublic SubjectAreaOMASAPIResponse getLine(String restAPIName, String userId, String className, String guid)
restAPIName - rest API nameuserId - unique identifier for requesting user, under which the request is performedclassName - class nameguid - guid of the relationship to getpublic SubjectAreaOMASAPIResponse updateLine(String restAPIName, String userId, String guid, String className, Line line, boolean isReplace)
restAPIName - rest API nameuserId - userId under which the request is performedguid - unique identifier of the LineclassName - class nameline - the relationship to updateisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.public SubjectAreaOMASAPIResponse deleteLine(String restAPIName, String userId, String className, String guid, Boolean isPurge)
restAPIName - rest API nameuserId - unique identifier for requesting user, under which the request is performedclassName - class nameguid - guid of the HAS A relationship to deleteisPurge - true indicates a hard delete, false is a soft delete.public SubjectAreaOMASAPIResponse restoreLine(String restAPIName, String userId, String className, String guid)
Restore allows the deleted relationship to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
restAPIName - rest API nameuserId - unique identifier for requesting user, under which the request is performedclassName - class nameguid - guid of the relationship to restoreCopyright © 2018–2020 ODPi. All rights reserved.