Class ProjectImpl

java.lang.Object
com.atlassian.jira.project.ProjectImpl
All Implemented Interfaces:
WithId, WithKey, Project, Named, NamedWithDescription

public class ProjectImpl extends Object implements Project
Represents an immutable Project domain object for JIRA.
  • Constructor Details

    • ProjectImpl

      public ProjectImpl(org.ofbiz.core.entity.GenericValue projectGv)
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface Project
      Specified by:
      getId in interface WithId
      Returns:
      the id of the project
    • getName

      public String getName()
      Specified by:
      getName in interface Named
      Specified by:
      getName in interface Project
      Returns:
      the name of the project.
    • getKey

      public String getKey()
      Specified by:
      getKey in interface Project
      Specified by:
      getKey in interface WithKey
      Returns:
      the project key.
    • getUrl

      public String getUrl()
      Specified by:
      getUrl in interface Project
      Returns:
      the project URL
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface Project
      Returns:
      the project email address from which email notifications are sent.
    • getProjectLead

      public ApplicationUser getProjectLead()
      Specified by:
      getProjectLead in interface Project
      Returns:
      the Project Lead
    • getLead

      public ApplicationUser getLead()
      Specified by:
      getLead in interface Project
      Returns:
      the Project Lead
    • getLeadUserName

      public String getLeadUserName()
      Specified by:
      getLeadUserName in interface Project
      Returns:
      the user name of the project lead
    • getLeadUserKey

      public String getLeadUserKey()
      Specified by:
      getLeadUserKey in interface Project
      Returns:
      the Project Lead's userkey
    • getOriginalKey

      public String getOriginalKey()
      Specified by:
      getOriginalKey in interface Project
      Returns:
      the project key with which Project was originally created
    • isArchived

      public boolean isArchived()
      Specified by:
      isArchived in interface Project
      Returns:
      true if this project is archived.
    • getArchivedBy

      public ApplicationUser getArchivedBy()
      Specified by:
      getArchivedBy in interface Project
      Returns:
      the user who archived this project, or null if it wasn't archived.
    • getArchivedDate

      public Date getArchivedDate()
      Specified by:
      getArchivedDate in interface Project
      Returns:
      Date when this project was archived, or null if it wasn't archived.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface NamedWithDescription
      Specified by:
      getDescription in interface Project
      Returns:
      the project description
    • getCreatedAt

      public Timestamp getCreatedAt()
      Description copied from interface: Project
      Returns the timestamp when this project was created. By default, returns null for projects created before adding this field.
      Specified by:
      getCreatedAt in interface Project
      Returns:
      Timestamp when this project was created, or null by default.
    • getCreatorId

      public Long getCreatorId()
      Description copied from interface: Project
      Returns the ID of the project creator. The default return value is null for projects created before this field was added, or if the creator was removed after the project's creation.
      Specified by:
      getCreatorId in interface Project
      Returns:
      Long the project creator's ID, or null by default.
    • getCreatedBy

      public ApplicationUser getCreatedBy()
      Description copied from interface: Project
      Returns the creator of the project. The default return value is null for projects created before this field was added, or if the creator was removed after the project's creation.
      Specified by:
      getCreatedBy in interface Project
      Returns:
      ApplicationUser the creator of the project, or null by default.
    • getLastUpdatedAt

      public Timestamp getLastUpdatedAt()
      Description copied from interface: Project
      Returns the timestamp when this project was lastly updated. By default, returns null for projects updated before adding this field.
      Specified by:
      getLastUpdatedAt in interface Project
      Returns:
      Timestamp when this project was updated, or null by default.
    • getLastUpdaterId

      public Long getLastUpdaterId()
      Description copied from interface: Project
      Returns the ID of the user who lastly updated project. The default return value is null for projects updated before this field was added, or if the updater was removed after the project's update.
      Specified by:
      getLastUpdaterId in interface Project
      Returns:
      Long the project updater's ID, or null by default.
    • getLastUpdatedBy

      public ApplicationUser getLastUpdatedBy()
      Description copied from interface: Project
      Returns the last updater of the project. The default return value is null for projects updated before this field was added, or if the updater was removed after the project's update.
      Specified by:
      getLastUpdatedBy in interface Project
      Returns:
      ApplicationUser the updater of the project, or null by default.
    • getAssigneeType

      public Long getAssigneeType()
      Description copied from interface: Project
      Returns the default assignee for issues that get created in this project. Returns AssigneeTypes.PROJECT_LEAD or AssigneeTypes.UNASSIGNED. Can return NULL if the default assignee has not been set for this project and this means the PROJECT LEAD is the default assignee.

      TODO: Write upgrade task to ensure default assignee is always set.

      Specified by:
      getAssigneeType in interface Project
      Returns:
      the default assignee. NB: Can return NULL
    • getProjectTypeKey

      public ProjectTypeKey getProjectTypeKey()
      Description copied from interface: Project
      Returns the key of the project type for this project.
      Specified by:
      getProjectTypeKey in interface Project
      Returns:
      The key of the project type for this project.
    • getComponents

      public Collection<ProjectComponent> getComponents()
      Description copied from interface: Project
      Returns the components for this Project.
      Specified by:
      getComponents in interface Project
      Returns:
      the components for this Project.
    • getProjectComponents

      public Collection<ProjectComponent> getProjectComponents()
      Description copied from interface: Project
      Returns the components for this Project.

      This is a synonym for Project.getComponents() that exists for legacy reasons.

      Specified by:
      getProjectComponents in interface Project
      Returns:
      the components for this Project.
      See Also:
    • getVersions

      public Collection<Version> getVersions()
      Specified by:
      getVersions in interface Project
      Returns:
      a Collection of Version for this project
    • getIssueTypes

      public Collection<IssueType> getIssueTypes()
      Specified by:
      getIssueTypes in interface Project
      Returns:
      a Collection of IssueType for this project
    • getProjectCategory

      public ProjectCategory getProjectCategory()
      Specified by:
      getProjectCategory in interface Project
      Returns:
      the project category information for this project.
    • getProjectCategoryObject

      public ProjectCategory getProjectCategoryObject()
      Description copied from interface: Project
      Returns the Project Category for this Project.

      This is a synonym for Project.getProjectCategory() that exists for legacy reasons.

      Specified by:
      getProjectCategoryObject in interface Project
      Returns:
      the project category information for this project.
      See Also:
    • getAvatar

      @Nonnull public Avatar getAvatar()
      Description copied from interface: Project
      Gives the currently-configured Avatar for this project.
      Specified by:
      getAvatar in interface Project
      Returns:
      the current Avatar (or default if the current one is removed), never null.
    • getGenericValue

      public org.ofbiz.core.entity.GenericValue getGenericValue()
      Specified by:
      getGenericValue in interface Project
      Returns:
      the GenericValue backing this project object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object