public class ProjectHandler extends Object
| Constructor and Description |
|---|
ProjectHandler(SubjectAreaProject subjectAreaProject)
Constructor for the ProjectHandler
|
| Modifier and Type | Method and Description |
|---|---|
Project |
createProject(String userId,
Project suppliedProject)
Create a Project.
|
void |
deleteProject(String userId,
String guid)
Delete a Project instance
|
List<Project> |
findProject(String userId,
FindRequest findRequest)
Find Project
|
Project |
getProjectByGuid(String userId,
String guid)
Get a Project by guid.
|
List<Line> |
getProjectRelationships(String userId,
String guid,
FindRequest findRequest)
Get Project relationships
|
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.
|
public ProjectHandler(SubjectAreaProject subjectAreaProject)
subjectAreaProject - The SubjectAreaDefinition Open Metadata Access Service (OMAS) API for projects. This is the same as the
The SubjectAreaDefinition Open Metadata View Service (OMVS) API for projects.public Project createProject(String userId, Project suppliedProject) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Projects 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.
userId - unique identifier for requesting user, under which the request is performedsuppliedProject - Project to createExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic Project getProjectByGuid(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId under which the request is performedguid - guid of the Project to getExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic List<Line> getProjectRelationships(String userId, String guid, FindRequest findRequest) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to getfindRequest - FindRequestExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic List<Project> findProject(String userId, FindRequest findRequest) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - unique identifier for requesting user, under which the request is performedfindRequest - FindRequestExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic Project replaceProject(String userId, String guid, Project suppliedProject) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Status is not updated using this call.
userId - userId under which the request is performedguid - guid of the Project to updatesuppliedProject - Project to be updatedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic Project updateProject(String userId, String guid, Project suppliedProject) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Status is not updated using this call.
userId - userId under which the request is performedguid - guid of the Project to updatesuppliedProject - Project to be updatedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic void deleteProject(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
The 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.
userId - userId under which the request is performedguid - guid of the Project to be deleted.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionpublic void purgeProject(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
The 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.
userId - userId under which the request is performedguid - guid of the Project to be deleted.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic Project restoreProject(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, 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.
userId - unique identifier for requesting user, under which the request is performedguid - guid of the Project to restoreUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - property server exceptionCopyright © 2018–2020 ODPi. All rights reserved.