public class SubjectAreaRelationshipHandler extends SubjectAreaHandler
CATEGORY_ANCHOR_RELATIONSHIP_NAME, CATEGORY_HIERARCHY_LINK_RELATIONSHIP_NAME, CATEGORY_TYPE_NAME, GLOSSARY_TYPE_NAME, invalidParameterHandler, mappersFactory, maxPageSize, oMRSAPIHelper, PROJECT_SCOPE_RELATIONSHIP_NAME, PROJECT_TYPE_NAME, TERM_ANCHOR_RELATIONSHIP_NAME, TERM_CATEGORIZATION_RELATIONSHIP_NAME, TERM_TYPE_NAME| Constructor and Description |
|---|
SubjectAreaRelationshipHandler(OMRSAPIHelper oMRSAPIHelper,
int maxPageSize)
Construct the Subject Area Relationship Handler
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
<L extends Line> |
createLine(String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
L line)
Create a Line (relationship), which is a link between two Nodes.
|
<L extends Line> |
deleteLine(String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
String guid,
Boolean isPurge)
Delete a Line (relationship)
|
<L extends Line> |
getLine(String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
String guid)
Get a Line (relationship)
|
<L extends Line> |
restoreLine(String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
String guid)
Restore a Line (relationship).
|
<L extends Line> |
updateLine(String restAPIName,
String userId,
String lineGuid,
Class<? extends ILineMapper<L>> clazz,
L line,
Boolean isReplace)
Update a relationship.
|
categoryMatchSearchCriteria, convertOmrsToOmas, findEntities, getAllLineForEntity, getAllRelationshipsForEntity, getLinesFromRelationships, getMaxPageSize, getNodesFromEntityDetails, getRelatedNodesForEnd1, getRelatedNodesForEnd2, setUniqueQualifiedNameIfBlank, termMatchSearchCriteria, validateGlossarySummaryDuringCreationpublic SubjectAreaRelationshipHandler(OMRSAPIHelper oMRSAPIHelper, int maxPageSize)
oMRSAPIHelper - omrs API helpermaxPageSize - maximum page sizepublic <L extends Line> SubjectAreaOMASAPIResponse<L> createLine(String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, L line)
L - Line type of object for responserestAPIName - rest API nameuserId - userId under which the request is performedclazz - mapper Classline - line to createpublic <L extends Line> SubjectAreaOMASAPIResponse<L> getLine(String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, String guid)
L - Line type of object for responserestAPIName - rest API nameuserId - unique identifier for requesting user, under which the request is performedclazz - mapper Classguid - guid of the relationship to getpublic <L extends Line> SubjectAreaOMASAPIResponse<L> updateLine(String restAPIName, String userId, String lineGuid, Class<? extends ILineMapper<L>> clazz, L line, Boolean isReplace)
L - Line type of object for responserestAPIName - rest API nameuserId - userId under which the request is performedlineGuid - unique identifier of the Lineclazz - mapper Classline - 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 <L extends Line> SubjectAreaOMASAPIResponse<L> deleteLine(String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, String guid, Boolean isPurge)
L - Line type of object for responserestAPIName - rest API nameuserId - unique identifier for requesting user, under which the request is performedclazz - mapper Classguid - guid of the HAS A relationship to deleteisPurge - true indicates a hard delete, false is a soft delete.public <L extends Line> SubjectAreaOMASAPIResponse<L> restoreLine(String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, 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.
L - Line type of object for responserestAPIName - rest API nameuserId - unique identifier for requesting user, under which the request is performedclazz - mapper Classguid - guid of the relationship to restoreCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.