public class SubjectAreaProjectRESTServices extends SubjectAreaRESTServicesInstance
| Constructor and Description |
|---|
SubjectAreaProjectRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse<Project> |
createProject(String serverName,
String userId,
Project suppliedProject)
Create a Project.
|
SubjectAreaOMASAPIResponse<Project> |
deleteProject(String serverName,
String userId,
String guid,
Boolean isPurge)
Delete a Project instance
|
SubjectAreaOMASAPIResponse<Project> |
findProject(String serverName,
String userId,
String searchCriteria,
boolean exactValue,
boolean ignoreCase,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Project
|
SubjectAreaOMASAPIResponse<Project> |
getProjectByGuid(String serverName,
String userId,
String guid)
Get a Project by guid.
|
SubjectAreaOMASAPIResponse<Relationship> |
getProjectRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Project relationships
|
SubjectAreaOMASAPIResponse<Term> |
getProjectTerms(String serverName,
String userId,
String guid,
Integer startingFrom,
Integer pageSize)
Get the terms in this project.
|
SubjectAreaOMASAPIResponse<Project> |
restoreProject(String serverName,
String userId,
String guid)
Restore a Project
Restore allows the deleted Project to be made active again.
|
SubjectAreaOMASAPIResponse<Project> |
updateProject(String serverName,
String userId,
String guid,
Project suppliedProject,
boolean isReplace)
Update a Project
|
createRelationship, deleteRelationship, getFindRequest, getRelationship, getResponseForException, restoreRelationship, updateRelationshippublic SubjectAreaProjectRESTServices()
public SubjectAreaOMASAPIResponse<Project> 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<Project> 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<Project> findProject(String serverName, String userId, String searchCriteria, boolean exactValue, boolean ignoreCase, Date asOfTime, Integer startingFrom, 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.exactValue - a boolean, which when set means that only exact matches will be returned, otherwise matches that start with the search criteria will be returned.ignoreCase - a boolean, which when set means that case will be ignored, if not set that case will be respectedasOfTime - the projects returned as they were at this time. null indicates at the current time.startingFrom - 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.sequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.public SubjectAreaOMASAPIResponse<Relationship> getProjectRelationships(String serverName, String userId, String guid, Date asOfTime, Integer startingFrom, 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 performedguid - guid of the term to getasOfTime - the relationships returned as they were at this time. null indicates at the current time. If specified, the date is in milliseconds since 1970-01-01 00:00:00.startingFrom - 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.sequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.public SubjectAreaOMASAPIResponse<Term> getProjectTerms(String serverName, String userId, String guid, Integer startingFrom, Integer pageSize)
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 ProjectstartingFrom - 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.public SubjectAreaOMASAPIResponse<Project> 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<Project> 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<Project> 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 restoreCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.