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, 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:
- 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 boolean
equals(java.lang.Object obj)
java.lang.String
getCode()
Returns the project code.java.lang.String
getDescription()
Returns the project description.java.lang.Long
getId()
Returns the techical database id of the project.java.lang.String
getIdentifier()
java.lang.String
getPermId()
Returns the permanent id of the project.EntityRegistrationDetails
getRegistrationDetails()
Return the vocabulary term registration details.java.lang.String
getSpaceCode()
Returns the space code.int
hashCode()
java.lang.String
toString()
-
-
-
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 isnull
or 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 isnull
or 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 isnull
or 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 isnull
or 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:
getIdentifier
in interfaceIIdentifierHolder
-
getRegistrationDetails
public EntityRegistrationDetails getRegistrationDetails()
Return the vocabulary term registration details.- Since:
- 1.11
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-