Class Project

java.lang.Object
com.genologics.ri.project.Project
All Implemented Interfaces:
LimsEntity<Project>, LimsEntityLinkable<Project>, Linkable<Project>, Locatable, UDFHolder, Serializable

public class Project extends Object implements LimsEntity<Project>, UDFHolder, Serializable
The detailed representation of a Project.
See Also:
  • Field Details

    • name

      protected String name
      The name of the project.
    • openDate

      protected Date openDate
      The date the project was opened.
    • closeDate

      protected Date closeDate
      The date the project was closed.
    • invoiceDate

      protected Date invoiceDate
      The date the project was invoiced.
    • researcher

      protected ResearcherLink researcher
      The researcher associated with the project.
    • type

      protected UDT type
      The user-defined type of the project.
    • fields

      protected List<UDF> fields
      The user-defined fields for the project.
    • externalIds

      protected List<ExternalId> externalIds
      The external identifiers for the project.
    • files

      protected List<ClarityFile> files
      The files attached to the project.
    • priority

      protected String priority
      The priority of the project.
      Since:
      2.34
    • limsid

      protected String limsid
      The LIMS id of the project.
    • uri

      protected URI uri
      The URI of the project.
  • Constructor Details

    • Project

      public Project()
      Constructor for Project.
    • Project

      public Project(URI uri)
      Constructor for Project with a URI.
      Parameters:
      uri - The URI of the project.
    • Project

      public Project(URI uri, String limsid)
      Constructor for Project with a URI and LIMS id.
      Parameters:
      uri - The URI of the project.
      limsid - The LIMS id of the project.
  • Method Details

    • getName

      public String getName()
      Get the name of the project.
      Returns:
      The project name.
    • setName

      public void setName(String value)
      Set the name of the project.
      Parameters:
      value - The new project name.
    • getOpenDate

      public Date getOpenDate()
      Get the open date of the project.
      Returns:
      The open date.
    • setOpenDate

      public void setOpenDate(Date openDate)
      Set the open date of the project.
      Parameters:
      openDate - The new open date.
    • getCloseDate

      public Date getCloseDate()
      Get the close date of the project.
      Returns:
      The close date.
    • setCloseDate

      public void setCloseDate(Date closeDate)
      Set the close date of the project.
      Parameters:
      closeDate - The new close date.
    • getInvoiceDate

      public Date getInvoiceDate()
      Get the invoice date of the project.
      Returns:
      The invoice date.
    • setInvoiceDate

      public void setInvoiceDate(Date invoiceDate)
      Set the invoice date of the project.
      Parameters:
      invoiceDate - The new invoice date.
    • getResearcher

      public ResearcherLink getResearcher()
      Get the researcher associated with the project.
      Returns:
      The researcher link.
    • setResearcher

      public void setResearcher(Linkable<Researcher> link)
      Set the researcher associated with the project.
      Parameters:
      link - The linkable researcher.
    • getUserDefinedType

      public UDT getUserDefinedType()
      Get the user-defined type of the project.
      Returns:
      The user-defined type.
    • setUserDefinedType

      public UDT setUserDefinedType(UDT value)
      Set the user-defined type of the project.
      Parameters:
      value - The new user-defined type.
      Returns:
      The user-defined type that was set.
    • setUserDefinedType

      public UDT setUserDefinedType(String type)
      Set the user-defined type of the project by name.
      Parameters:
      type - The name of the user-defined type.
      Returns:
      The user-defined type that was created and set.
    • getUserDefinedFields

      public List<UDF> getUserDefinedFields()
      Get the user-defined fields for the project.
      Specified by:
      getUserDefinedFields in interface UDFHolder
      Returns:
      The list of user-defined fields.
    • getExternalIds

      public List<ExternalId> getExternalIds()
      Get the external identifiers for the project.
      Returns:
      The list of external identifiers.
    • getFiles

      public List<ClarityFile> getFiles()
      Get the files attached to the project.
      Returns:
      The list of files.
    • addFile

      public ClarityFile addFile(ClarityFile f)
      Add a file to the project.
      Parameters:
      f - The file to add.
      Returns:
      The file that was added.
    • getPriority

      public String getPriority()
      Get the priority of the project.
      Returns:
      The priority.
    • setPriority

      public void setPriority(String priority)
      Set the priority of the project.
      Parameters:
      priority - The new priority.
    • getLimsid

      public String getLimsid()
      Get the LIMS id of the project.
      Specified by:
      getLimsid in interface LimsEntityLinkable<Project>
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String value)
      Set the LIMS id of the project.
      Specified by:
      setLimsid in interface LimsEntityLinkable<Project>
      Parameters:
      value - The new LIMS id.
    • getUri

      public URI getUri()
      Get the URI of the project.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI value)
      Set the URI of the project.
      Specified by:
      setUri in interface Locatable
      Parameters:
      value - The new URI.
    • toString

      public String toString()
      Return a string representation of the project.
      Overrides:
      toString in class Object
      Returns:
      The LIMS id and name of the project.
    • getLink

      public LimsEntityLink<Project> getLink()
      Get a concrete link object to this LimsEntityLinkable entity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have corresponding LimsEntityLink link classes available.
      Specified by:
      getLink in interface LimsEntityLinkable<Project>
      Specified by:
      getLink in interface Linkable<Project>
      Returns:
      A LimsEntityLink to this object.