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 <L extends Line> |
createLine(String serverName,
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 serverName,
String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
String guid,
Boolean isPurge)
Delete a Line (relationship)
|
protected FindRequest |
getFindRequest(String searchCriteria,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
String sequencingOrderName,
String sequencingProperty,
Integer handlerMaxPageSize) |
protected <L extends Line> |
getLine(String serverName,
String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
String guid)
Get a Line (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 Line> |
restoreLine(String serverName,
String restAPIName,
String userId,
Class<? extends ILineMapper<L>> clazz,
String guid)
Restore a Line (relationship).
|
protected <L extends Line> |
updateLine(String serverName,
String restAPIName,
String userId,
String guid,
Class<? extends ILineMapper<L>> clazz,
L line,
boolean isReplace)
Update a relationship.
|
protected static org.odpi.openmetadata.accessservices.subjectarea.server.services.SubjectAreaInstanceHandler instanceHandler
public SubjectAreaRESTServicesInstance()
protected <L extends Line> SubjectAreaOMASAPIResponse<L> createLine(String serverName, String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, L line)
L - Line 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 Classline - line to createprotected <L extends Line> SubjectAreaOMASAPIResponse<L> getLine(String serverName, String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, String guid)
L - Line 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 Line> SubjectAreaOMASAPIResponse<L> updateLine(String serverName, String restAPIName, String userId, String guid, Class<? extends ILineMapper<L>> clazz, L line, boolean isReplace)
L - Line 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 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 serverName, String restAPIName, String userId, Class<? extends ILineMapper<L>> clazz, String guid, Boolean isPurge)
L - Line 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 Line> SubjectAreaOMASAPIResponse<L> restoreLine(String serverName, 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 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.