public class SubjectAreaProjectRESTServices extends SubjectAreaRESTServicesInstance
instanceHandler, oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaProjectRESTServices()
Default constructor
|
SubjectAreaProjectRESTServices(OMRSAPIHelper oMRSAPIHelper) |
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
createProject(String serverName,
String userId,
Project suppliedProject)
Create a Project.
|
SubjectAreaOMASAPIResponse |
deleteProject(String serverName,
String userId,
String guid,
Boolean isPurge)
Delete a Project instance
|
SubjectAreaOMASAPIResponse |
findProject(String serverName,
String userId,
String searchCriteria,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Project
|
SubjectAreaOMASAPIResponse |
getProjectByGuid(String serverName,
String userId,
String guid)
Get a Project by guid.
|
SubjectAreaOMASAPIResponse |
getProjectRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty) |
SubjectAreaOMASAPIResponse |
getProjectTerms(String serverName,
String userId,
String guid,
Date asOfTime) |
protected SubjectAreaOMASAPIResponse |
getResponse(SubjectAreaOMASAPIResponse response)
Take an entityDetail response and map it to the appropriate Project orientated response
|
SubjectAreaOMASAPIResponse |
restoreProject(String serverName,
String userId,
String guid)
Restore a Project
Restore allows the deleted Project to be made active again.
|
SubjectAreaOMASAPIResponse |
updateProject(String serverName,
String userId,
String guid,
Project suppliedProject,
boolean isReplace)
Update a Project
|
createLine, deleteLine, getLine, getRelationshipsFromGuid, initializeAPI, initializeAPI, restoreLine, setOMRSAPIHelper, updateLinepublic SubjectAreaProjectRESTServices()
public SubjectAreaProjectRESTServices(OMRSAPIHelper oMRSAPIHelper)
public SubjectAreaOMASAPIResponse createProject(String serverName, String userId, Project suppliedProject)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedsuppliedProject - Project to createpublic SubjectAreaOMASAPIResponse getProjectByGuid(String serverName, String userId, String guid)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to getpublic SubjectAreaOMASAPIResponse findProject(String serverName, String userId, String searchCriteria, Date asOfTime, Integer offset, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedsearchCriteria - String expression matching Project property values. If not specified then all projects are returned.asOfTime - the projects returned as they were at this time. null indicates at the current time.offset - the starting element number for this set of results. This is used when retrieving elements
beyond the first page of results. Zero means the results start from the first element.pageSize - the maximum number of elements that can be returned on this request.
0 means there is no limit to the page sizesequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.public SubjectAreaOMASAPIResponse getProjectRelationships(String serverName, String userId, String guid, Date asOfTime, Integer offset, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
public SubjectAreaOMASAPIResponse getProjectTerms(String serverName, String userId, String guid, Date asOfTime)
public SubjectAreaOMASAPIResponse updateProject(String serverName, String userId, String guid, Project suppliedProject, boolean isReplace)
If the caller has chosen to incorporate the Project name in their Project Terms or Categories qualified name, renaming the Project will cause those qualified names to mismatch the Project name. If the caller has chosen to incorporate the Project qualifiedName in their Project Terms or Categories qualified name, changing the qualified name of the Project will cause those qualified names to mismatch the Project name. Status is not updated using this call.
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to updatesuppliedProject - Project to be updatedisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.public SubjectAreaOMASAPIResponse deleteProject(String serverName, String userId, String guid, Boolean isPurge)
There are 2 types of deletion, a soft delete and a hard delete (also known as a purge). All repositories support hard deletes. Soft deletes support is optional. Soft delete is the default.
A soft delete means that the Project instance will exist in a deleted state in the repository after the delete operation. This means that it is possible to undo the delete. A hard delete means that the Project will not exist after the operation. when not successful the following Exceptions can occur
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to be deleted.isPurge - true indicates a hard delete, false is a soft delete.public SubjectAreaOMASAPIResponse restoreProject(String serverName, String userId, String guid)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to restoreprotected SubjectAreaOMASAPIResponse getResponse(SubjectAreaOMASAPIResponse response)
response - entityDetailResponseCopyright © 2018–2019 ODPi. All rights reserved.