Class Project
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Project
-
- All Implemented Interfaces:
IIdentifierHolder,java.io.Serializable
@JsonObject("Project") public final class Project extends java.lang.Object implements java.io.Serializable, IIdentifierHolderImmutable value object representing a project. A project is specified by its code and the code of the space to which it belongs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Project(java.lang.Long id, java.lang.String permId, java.lang.String spaceCode, java.lang.String code, java.lang.String description)Creates a new instance for the specified tech id, perm id, space code and project code.Project(java.lang.Long id, java.lang.String permId, java.lang.String spaceCode, java.lang.String code, java.lang.String description, EntityRegistrationDetails registrationDetails)Creates a new instance for the specified space code and project code.Project(java.lang.String spaceCode, java.lang.String code)Creates a new instance for the specified space code and project code.Project(java.lang.String spaceCode, java.lang.String code, EntityRegistrationDetails registrationDetails)Creates a new instance for the specified tech id, perm id, space code and project code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCode()Returns the project code.java.lang.StringgetDescription()Returns the project description.java.lang.LonggetId()Returns the techical database id of the project.java.lang.StringgetIdentifier()java.lang.StringgetPermId()Returns the permanent id of the project.EntityRegistrationDetailsgetRegistrationDetails()Return the vocabulary term registration details.java.lang.StringgetSpaceCode()Returns the space code.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Project
public Project(java.lang.Long id, java.lang.String permId, java.lang.String spaceCode, java.lang.String code, java.lang.String description)Creates a new instance for the specified tech id, perm id, space code and project code.- Throws:
java.lang.IllegalArgumentException- if either the code or the space code isnullor an empty string.
-
Project
public Project(java.lang.String spaceCode, java.lang.String code)Creates a new instance for the specified space code and project code.- Throws:
java.lang.IllegalArgumentException- if either the code or the space code isnullor an empty string.
-
Project
public Project(java.lang.String spaceCode, java.lang.String code, EntityRegistrationDetails registrationDetails)Creates a new instance for the specified tech id, perm id, space code and project code.- Throws:
java.lang.IllegalArgumentException- if either the code or the space code isnullor an empty string.
-
Project
public Project(java.lang.Long id, java.lang.String permId, java.lang.String spaceCode, java.lang.String code, java.lang.String description, EntityRegistrationDetails registrationDetails)Creates a new instance for the specified space code and project code.- Throws:
java.lang.IllegalArgumentException- if either the code or the space code isnullor an empty string.
-
-
Method Detail
-
getId
public java.lang.Long getId()
Returns the techical database id of the project.- Since:
- 1.22
-
getPermId
public java.lang.String getPermId()
Returns the permanent id of the project.- Since:
- 1.22
-
getSpaceCode
public java.lang.String getSpaceCode()
Returns the space code.
-
getCode
public java.lang.String getCode()
Returns the project code.
-
getDescription
public java.lang.String getDescription()
Returns the project description.
-
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifierin interfaceIIdentifierHolder
-
getRegistrationDetails
public EntityRegistrationDetails getRegistrationDetails()
Return the vocabulary term registration details.- Since:
- 1.11
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-