public class SubjectAreaProjectImpl extends SubjectAreaBaseImpl implements SubjectAreaProject
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Constructor and Description |
|---|
SubjectAreaProjectImpl(String serverName,
String serverPlatformURLRoot)
Constructor for no authentication.
|
| Modifier and Type | Method and Description |
|---|---|
Project |
createProject(String userId,
Project suppliedProject)
Create a Project.
|
Project |
deleteProject(String userId,
String guid)
Delete a Project instance
|
List<Project> |
findProject(String userId,
String searchCriteria,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Project
|
Project |
getProjectByGuid(String userId,
String guid)
Get a Project by guid.
|
List<Line> |
getProjectRelationships(String userId,
String guid,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Project relationships
|
List<Term> |
getProjectTerms(String userId,
String guid,
Date asOfTime)
Get the terms in this project.
|
void |
purgeProject(String userId,
String guid)
Purge a Project instance
|
Project |
replaceProject(String userId,
String guid,
Project suppliedProject)
Replace a Project.
|
Project |
restoreProject(String userId,
String guid)
Restore a Project
|
Project |
updateProject(String userId,
String guid,
Project suppliedProject)
Update a Project.
|
deleteEntityRESTCall, deleteRelationshipRESTCall, encodeQueryProperty, findRESTCall, getByIdRESTCall, getRelationships, postRESTCall, purgeEntityRESTCall, purgeRelationshipRESTCall, putRESTCall, restoreRESTCallcallCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCallpublic SubjectAreaProjectImpl(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.InvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public Project createProject(String userId, Project suppliedProject) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaProjectProjects with the same name can be confusing. Best practise is to create projects 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.
Projects that are created using this call will be GlossaryProjects.
createProject in interface SubjectAreaProjectuserId - unique identifier for requesting user, under which the request is performedsuppliedProject - Project to createExceptions returned by the server
MetadataServerUncontactableException - Unable to contact the serverInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - the requesting user is not authorized to issue this request.UnrecognizedGUIDException - the supplied guid was not recognisedClassificationException - Error processing a classificationFunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Project getProjectByGuid(String userId, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaProjectgetProjectByGuid in interface SubjectAreaProjectuserId - userId under which the request is performedguid - guid of the Project to getExceptions returned by the server
MetadataServerUncontactableException - Unable to contact the serverUnrecognizedGUIDException - the supplied guid was not recognisedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public List<Line> getProjectRelationships(String userId, String guid, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, MetadataServerUncontactableException, PropertyServerException
SubjectAreaProjectgetProjectRelationships in interface SubjectAreaProjectuserId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to getasOfTime - the relationships 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 not 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.Exceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverMetadataServerUncontactableException - Unable to contact the serverPropertyServerException - Property Server Exception
Client library Exceptions
public List<Term> getProjectTerms(String userId, String guid, Date asOfTime) throws InvalidParameterException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, MetadataServerUncontactableException, PropertyServerException
SubjectAreaProjectgetProjectTerms in interface SubjectAreaProjectuserId - unique identifier for requesting user, under which the request is performedguid - guid of the Project 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.Exceptions returned by the server
InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - the requesting user is not authorized to issue this request.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverMetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
public List<Project> findProject(String userId, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaProjectfindProject in interface SubjectAreaProjectuserId - unique identifier for requesting user, under which the request is performedsearchCriteria - String expression matching Project properties. If not specified then all projects are returned.asOfTime - 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.Exceptions returned by the server
MetadataServerUncontactableException - Unable to contact the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Project replaceProject(String userId, String guid, Project suppliedProject) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException, FunctionNotSupportedException
SubjectAreaProjectIf 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.
replaceProject in interface SubjectAreaProjectuserId - userId under which the request is performedguid - guid of the Project to updatesuppliedProject - Project to be updatedUnexpectedResponseException - an unexpected response was returned from the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic Project updateProject(String userId, String guid, Project suppliedProject) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException, FunctionNotSupportedException
SubjectAreaProjectIf 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.
updateProject in interface SubjectAreaProjectuserId - userId under which the request is performedguid - guid of the Project to updatesuppliedProject - Project to be updatedUnexpectedResponseException - an unexpected response was returned from the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic Project deleteProject(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException, PropertyServerException
SubjectAreaProjectThe deletion of a Project is only allowed if there is no Project content
A delete (also known as 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.
deleteProject in interface SubjectAreaProjectuserId - userId under which the request is performedguid - guid of the Project to be deleted.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.UnrecognizedGUIDException - the supplied guid was not recognisedFunctionNotSupportedException - Function not supported this indicates that a soft delete was issued but the repository does not support it.UnexpectedResponseException - an unexpected response was returned from the serverEntityNotDeletedException - a delete was issued but the Project was not deleted.PropertyServerException - property server exception
Client library Exceptions
public void purgeProject(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, EntityNotPurgedException, UnexpectedResponseException, FunctionNotSupportedException, PropertyServerException
SubjectAreaProjectThe purge of a Project is only allowed if there is no Project content.
A purge means that the Project will not exist after the operation.
purgeProject in interface SubjectAreaProjectuserId - userId under which the request is performedguid - guid of the Project to be deleted.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - the requesting user is not authorized to issue this request.MetadataServerUncontactableException - Unable to contact the serverUnrecognizedGUIDException - the supplied guid was not recognisedEntityNotPurgedException - a hard delete was issued but the Project was not purgedUnexpectedResponseException - an unexpected response was returned from the serverFunctionNotSupportedException - Function not supportedPropertyServerException - property server exception
Client library Exceptions
public Project restoreProject(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
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.
restoreProject in interface SubjectAreaProjectuserId - unique identifier for requesting user, under which the request is performedguid - guid if the project to restoreUnrecognizedGUIDException - the supplied guid was not recognisedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supported this indicates that a soft delete was issued but the repository does not support it.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
Copyright © 2018–2020 ODPi. All rights reserved.