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 |
|---|---|
<R extends Relationship> |
createRelationship(String restAPIName,
String userId,
Class<? extends IRelationshipMapper<R>> clazz,
R relationship)
Create a relationship, which is a link between two Nodes.
|
<R extends Relationship> |
deleteRelationship(String restAPIName,
String userId,
Class<? extends IRelationshipMapper<R>> clazz,
String guid,
Boolean isPurge)
Delete a relationship
|
<R extends Relationship> |
getRelationship(String restAPIName,
String userId,
Class<? extends IRelationshipMapper<R>> clazz,
String guid)
Get a relationship (relationship)
|
<R extends Relationship> |
restoreRelationship(String restAPIName,
String userId,
Class<? extends IRelationshipMapper<R>> clazz,
String guid)
Restore a relationship.
|
<R extends Relationship> |
updateRelationship(String restAPIName,
String userId,
String relationshipGuid,
Class<? extends IRelationshipMapper<R>> clazz,
R relationship,
Boolean isReplace)
Update a relationship.
|
categoryMatchSearchCriteria, checkReadOnly, checkRelationshipReadOnly, convertOmrsToOmas, findEntities, getAllRelationshipForEntity, getAllRelationshipsForEntity, getMaxPageSize, getNodesFromEntityDetails, getRelatedNodesForEnd1, getRelatedNodesForEnd2, getRelationshipsFromRelationships, setUniqueQualifiedNameIfBlank, termMatchSearchCriteria, validateGlossarySummaryDuringCreationpublic SubjectAreaRelationshipHandler(OMRSAPIHelper oMRSAPIHelper, int maxPageSize)
oMRSAPIHelper - omrs API helpermaxPageSize - maximum page sizepublic <R extends Relationship> SubjectAreaOMASAPIResponse<R> createRelationship(String restAPIName, String userId, Class<? extends IRelationshipMapper<R>> clazz, R relationship)
R - Relationship type of object for responserestAPIName - rest API nameuserId - userId under which the request is performedclazz - mapper Classrelationship - relationship to createpublic <R extends Relationship> SubjectAreaOMASAPIResponse<R> getRelationship(String restAPIName, String userId, Class<? extends IRelationshipMapper<R>> clazz, String guid)
R - Relationship 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 <R extends Relationship> SubjectAreaOMASAPIResponse<R> updateRelationship(String restAPIName, String userId, String relationshipGuid, Class<? extends IRelationshipMapper<R>> clazz, R relationship, Boolean isReplace)
R - Relationship type of object for responserestAPIName - rest API nameuserId - userId under which the request is performedrelationshipGuid - unique identifier of the relationshipclazz - mapper Classrelationship - 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 <R extends Relationship> SubjectAreaOMASAPIResponse<R> deleteRelationship(String restAPIName, String userId, Class<? extends IRelationshipMapper<R>> clazz, String guid, Boolean isPurge)
R - Relationship 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 <R extends Relationship> SubjectAreaOMASAPIResponse<R> restoreRelationship(String restAPIName, String userId, Class<? extends IRelationshipMapper<R>> 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.
R - Relationship 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.