public class SubjectAreaRESTServicesInstance extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.odpi.openmetadata.accessservices.subjectarea.server.services.SubjectAreaInstanceHandler |
instanceHandler |
| Constructor and Description |
|---|
SubjectAreaRESTServicesInstance()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected <R extends Relationship> |
createRelationship(String serverName,
String restAPIName,
String userId,
Class<? extends IRelationshipMapper<R>> clazz,
R relationship)
Create a relationship (relationship), which is a link between two Nodes.
|
<L extends Relationship> |
deleteRelationship(String serverName,
String restAPIName,
String userId,
Class<? extends IRelationshipMapper<L>> clazz,
String guid,
Boolean isPurge)
Delete a relationship (relationship)
|
protected FindRequest |
getFindRequest(String searchCriteria,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
String sequencingOrderName,
String sequencingProperty,
Integer handlerMaxPageSize) |
protected <L extends Relationship> |
getRelationship(String serverName,
String restAPIName,
String userId,
Class<? extends IRelationshipMapper<L>> clazz,
String guid)
Get a relationship (relationship)
|
protected <T> SubjectAreaOMASAPIResponse<T> |
getResponseForException(Exception exception,
AuditLog auditLog,
String className,
String restAPIName)
Get the appropriate response from the supplied Exception
|
protected <L extends Relationship> |
restoreRelationship(String serverName,
String restAPIName,
String userId,
Class<? extends IRelationshipMapper<L>> clazz,
String guid)
Restore a relationship (relationship).
|
protected <L extends Relationship> |
updateRelationship(String serverName,
String restAPIName,
String userId,
String guid,
Class<? extends IRelationshipMapper<L>> clazz,
L relationship,
boolean isReplace)
Update a relationship.
|
protected static org.odpi.openmetadata.accessservices.subjectarea.server.services.SubjectAreaInstanceHandler instanceHandler
public SubjectAreaRESTServicesInstance()
protected <R extends Relationship> SubjectAreaOMASAPIResponse<R> createRelationship(String serverName, String restAPIName, String userId, Class<? extends IRelationshipMapper<R>> clazz, R relationship)
R - Relationship type of object for responseserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantrestAPIName - name of the rest APIuserId - userId under which the request is performedclazz - mapper Classrelationship - relationship to createprotected <L extends Relationship> SubjectAreaOMASAPIResponse<L> getRelationship(String serverName, String restAPIName, String userId, Class<? extends IRelationshipMapper<L>> clazz, String guid)
L - Relationship type of object for responseserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantrestAPIName - name of the rest APIuserId - unique identifier for requesting user, under which the request is performedclazz - mapper Classguid - guid of the relationship to getprotected <L extends Relationship> SubjectAreaOMASAPIResponse<L> updateRelationship(String serverName, String restAPIName, String userId, String guid, Class<? extends IRelationshipMapper<L>> clazz, L relationship, boolean isReplace)
L - Relationship type of object for responseserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantrestAPIName - rest api nameuserId - userId under which the request is performedguid - 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 <L extends Relationship> SubjectAreaOMASAPIResponse<L> deleteRelationship(String serverName, String restAPIName, String userId, Class<? extends IRelationshipMapper<L>> clazz, String guid, Boolean isPurge)
L - Relationship type of object for responseserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantrestAPIName - 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.protected <L extends Relationship> SubjectAreaOMASAPIResponse<L> restoreRelationship(String serverName, String restAPIName, String userId, Class<? extends IRelationshipMapper<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 - Relationship type of object for responseserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantrestAPIName - name of the rest APIuserId - unique identifier for requesting user, under which the request is performedclazz - mapper Classguid - guid of the relationship to restoreprotected FindRequest getFindRequest(String searchCriteria, Date asOfTime, Integer startingFrom, Integer pageSize, String sequencingOrderName, String sequencingProperty, Integer handlerMaxPageSize)
protected <T> SubjectAreaOMASAPIResponse<T> getResponseForException(Exception exception, AuditLog auditLog, String className, String restAPIName)
exception - - supplied exceptionauditLog - - auditlog (may be null if unable to initialize)className - - calling class's NamerestAPIName - - calling method's nameCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.