public class SubjectAreaProjectHandler 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 |
|---|
SubjectAreaProjectHandler(OMRSAPIHelper oMRSAPIHelper,
int maxPageSize)
Construct the Subject Area Project Handler
needed to operate within a single server instance.
|
convertOmrsToOmas, findEntities, getAllLineForEntity, getAllRelationshipsForEntity, getLinesFromRelationships, getMaxPageSize, getNodesFromEntityDetails, getRelatedNodesForEnd1, getRelatedNodesForEnd2, setUniqueQualifiedNameIfBlank, validateGlossarySummaryDuringCreationpublic SubjectAreaProjectHandler(OMRSAPIHelper oMRSAPIHelper, int maxPageSize)
oMRSAPIHelper - OMRS API helpermaxPageSize - maximum page sizepublic SubjectAreaOMASAPIResponse<Project> createProject(String userId, Project suppliedProject)
Projects with the same name can be confusing. Best practise is to createProjects that have unique names. This Create call does not police that project names are unique. So it is possible to create Projects with the same name as each other.
Valid nodeTypes for this request are:
userId - unique identifier for requesting user, under which the request is performedsuppliedProject - Project to createpublic SubjectAreaOMASAPIResponse<Project> getProjectByGuid(String userId, String guid)
userId - unique identifier for requesting user, under which the request is performedguid - guid of the project to getpublic SubjectAreaOMASAPIResponse<Project> findProject(String userId, FindRequest findRequest)
userId - unique identifier for requesting user, under which the request is performedfindRequest - FindRequestpublic SubjectAreaOMASAPIResponse<Line> getProjectRelationships(String userId, String guid, FindRequest findRequest)
userId - unique identifier for requesting user, under which the request is performedguid - guid of the project to getfindRequest - FindRequestwhen not successful the following Exception responses can occur
public SubjectAreaOMASAPIResponse<Project> updateProject(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.
userId - 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 userId, String guid, Boolean isPurge)
The deletion of a project is only allowed if there is no project content (i.e. no terms or categories).
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
userId - 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 userId, String guid)
Restore allows the deleted Project to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
userId - unique identifier for requesting user, under which the request is performedguid - guid of the project to restorepublic SubjectAreaOMASAPIResponse<Term> getProjectTerms(String userId, String guid, SubjectAreaTermHandler termHandler, Integer startingFrom, Integer pageSize)
userId - unique identifier for requesting user, under which the request is performedguid - guid of the ProjecttermHandler - Term handlerstartingFrom - 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.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.