Class Project
java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Project
- All Implemented Interfaces:
IIdentifierHolder,Serializable
@JsonObject("Project")
public final class Project
extends Object
implements Serializable, IIdentifierHolder
Immutable value object representing a project. A project is specified by its code and the code of the space to which it belongs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance for the specified tech id, perm id, space code and project code.Project(Long id, String permId, String spaceCode, String code, String description, EntityRegistrationDetails registrationDetails) Creates a new instance for the specified space code and project code.Creates a new instance for the specified space code and project code.Project(String spaceCode, String code, EntityRegistrationDetails registrationDetails) Creates a new instance for the specified tech id, perm id, space code and project code. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()Returns the project code.Returns the project description.getId()Returns the techical database id of the project.Returns the permanent id of the project.Return the vocabulary term registration details.Returns the space code.inthashCode()toString()
-
Constructor Details
-
Project
Creates a new instance for the specified tech id, perm id, space code and project code.- Throws:
IllegalArgumentException- if either the code or the space code isnullor an empty string.
-
Project
Creates a new instance for the specified space code and project code.- Throws:
IllegalArgumentException- if either the code or the space code isnullor an empty string.
-
-
Method Details
-
getId
Returns the techical database id of the project.- Since:
- 1.22
-
getPermId
Returns the permanent id of the project.- Since:
- 1.22
-
getSpaceCode
Returns the space code. -
getCode
Returns the project code. -
getDescription
Returns the project description. -
getIdentifier
- Specified by:
getIdentifierin interfaceIIdentifierHolder
-
getRegistrationDetails
Return the vocabulary term registration details.- Since:
- 1.11
-
hashCode
public int hashCode() -
equals
-
toString
-