@JsonObject(value="Project")
public final class Project
extends java.lang.Object
implements java.io.Serializable, ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder
Constructor and Description |
---|
Project(java.lang.Long id,
java.lang.String permId,
java.lang.String spaceCode,
java.lang.String code)
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,
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
Returns the project code.
|
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() |
public Project(java.lang.Long id, java.lang.String permId, java.lang.String spaceCode, java.lang.String code)
java.lang.IllegalArgumentException
- if either the code or the space code is null
or
an empty string.public Project(java.lang.String spaceCode, java.lang.String code)
java.lang.IllegalArgumentException
- if either the code or the space code is null
or
an empty string.public Project(java.lang.String spaceCode, java.lang.String code, EntityRegistrationDetails registrationDetails)
java.lang.IllegalArgumentException
- if either the code or the space code is null
or
an empty string.public Project(java.lang.Long id, java.lang.String permId, java.lang.String spaceCode, java.lang.String code, EntityRegistrationDetails registrationDetails)
java.lang.IllegalArgumentException
- if either the code or the space code is null
or
an empty string.public java.lang.Long getId()
public java.lang.String getPermId()
public java.lang.String getSpaceCode()
public java.lang.String getCode()
public java.lang.String getIdentifier()
getIdentifier
in interface ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder
public EntityRegistrationDetails getRegistrationDetails()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object