Class 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.
    • 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 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,
                       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 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.
      • getDescription

        public java.lang.String getDescription()
        Returns the project description.
      • 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