public class

ProjectImpl

extends Object
implements Project
java.lang.Object
   ↳ com.atlassian.jira.project.ProjectImpl

Class Overview

Represents an immutable Project domain object for JIRA.

Summary

Public Constructors
ProjectImpl(GenericValue projectGv)
Public Methods
boolean equals(Object o)
Long getAssigneeType()
Returns the default assignee for issues that get created in this project.
@Nonnull Avatar getAvatar()
Gives the currently-configured Avatar for this project.
Collection<GenericValue> getComponents()
Returns the components for this Project.
Long getCounter()
String getDescription()
String getEmail()
GenericValue getGenericValue()
Long getId()
Collection<IssueType> getIssueTypes()
String getKey()
User getLead()
User getLeadUser()
Returns the Project Lead
String getLeadUserKey()
String getLeadUserName()
String getName()
String getOriginalKey()
GenericValue getProjectCategory()
ProjectCategory getProjectCategoryObject()
Collection<ProjectComponent> getProjectComponents()
Returns the components for this Project.
ApplicationUser getProjectLead()
String getUrl()
Collection<Version> getVersions()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.entity.WithKey
From interface com.atlassian.jira.project.Project
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription

Public Constructors

public ProjectImpl (GenericValue projectGv)

Public Methods

public boolean equals (Object o)

public Long getAssigneeType ()

Returns the default assignee for issues that get created in this project. Returns PROJECT_LEAD or 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.

Returns
  • the default assignee. NB: Can return NULL

@Nonnull public Avatar getAvatar ()

Gives the currently-configured Avatar for this project.

Returns
  • the current Avatar, never null.

public Collection<GenericValue> getComponents ()

Returns the components for this Project.

Returns
  • the components for this Project.

public Long getCounter ()

public String getDescription ()

public String getEmail ()

public GenericValue getGenericValue ()

public Long getId ()

public Collection<IssueType> getIssueTypes ()

public String getKey ()

public User getLead ()

public User getLeadUser ()

Returns the Project Lead

Returns
  • the Project Lead

public String getLeadUserKey ()

public String getLeadUserName ()

public String getName ()

public String getOriginalKey ()

public GenericValue getProjectCategory ()

public ProjectCategory getProjectCategoryObject ()

public Collection<ProjectComponent> getProjectComponents ()

Returns the components for this Project.

Returns
  • the components for this Project.

public ApplicationUser getProjectLead ()

public String getUrl ()

public Collection<Version> getVersions ()

public int hashCode ()

public String toString ()