ch.systemsx.cisd.openbis.generic.shared.api.v1.dto
Class Project

java.lang.Object
  extended by ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Project
All Implemented Interfaces:
ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder, java.io.Serializable

@JsonObject(value="Project")
public final class Project
extends java.lang.Object
implements java.io.Serializable, ch.systemsx.cisd.openbis.generic.shared.basic.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
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.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Project

public 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.

Throws:
java.lang.IllegalArgumentException - if either the code or the space code is null 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 is null 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 is null or an empty string.

Project

public 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.

Throws:
java.lang.IllegalArgumentException - if either the code or the space code is null 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.


getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in interface ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder

getRegistrationDetails

public EntityRegistrationDetails getRegistrationDetails()
Return the vocabulary term registration details.

Since:
1.11

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object