com.atlassian.jira.project
Interface Project

All Superinterfaces:
Named
All Known Implementing Classes:
MockProject, ProjectImpl

@PublicApi
public interface Project
extends Named

Defines a project in JIRA.


Method Summary
 Long getAssigneeType()
          Returns the default assignee for issues that get created in this project.
 Avatar getAvatar()
          Gives the currently-configured Avatar for this project.
 Collection<org.ofbiz.core.entity.GenericValue> getComponents()
          Deprecated. Use getProjectComponents(). Since v4.1.
 Long getCounter()
          Deprecated. (since 5.0) The counter is not something users of project information should concern themselves with. This call delegates through to ProjectManager.getCurrentCounterForProject().
 String getDescription()
           
 String getEmail()
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
          Deprecated. only use this if you need to utilize an older API method
 Long getId()
           
 Collection<IssueType> getIssueTypes()
           
 String getKey()
           
 com.atlassian.crowd.embedded.api.User getLead()
           
 com.atlassian.crowd.embedded.api.User getLeadUser()
          Deprecated. Use getLead() instead.
 String getLeadUserName()
           
 String getName()
           
 org.ofbiz.core.entity.GenericValue getProjectCategory()
          Deprecated. Use getProjectCategoryObject() instead. Since v5.1.
 ProjectCategory getProjectCategoryObject()
           
 Collection<ProjectComponent> getProjectComponents()
          Returns the components for this Project.
 String getUrl()
           
 Collection<Version> getVersions()
           
 

Method Detail

getId

Long getId()
Returns:
the id of the project

getName

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

getKey

String getKey()
Returns:
the project key.

getUrl

String getUrl()
Returns:
the project URL

getEmail

String getEmail()
Returns:
the project email address from which email notifications are sent.

getLead

com.atlassian.crowd.embedded.api.User getLead()
Returns:
the Project Lead

getLeadUser

com.atlassian.crowd.embedded.api.User getLeadUser()
Deprecated. Use getLead() instead.

Returns the Project Lead

Returns:
the Project Lead

getLeadUserName

String getLeadUserName()
Returns:
the user name of the project lead

getDescription

String getDescription()
Returns:
the project description

getAssigneeType

Long getAssigneeType()
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.

Returns:
the default assignee. NB: Can return NULL

getCounter

Long getCounter()
Deprecated. (since 5.0) The counter is not something users of project information should concern themselves with. This call delegates through to ProjectManager.getCurrentCounterForProject().

Returns:
the last number used to generate an issue key. E.g. Counter = 2, issue key: HSP-2

getComponents

Collection<org.ofbiz.core.entity.GenericValue> getComponents()
Deprecated. Use getProjectComponents(). Since v4.1.

Returns the components for this Project.

Returns:
the components for this Project.
See Also:
getProjectComponents()

getProjectComponents

Collection<ProjectComponent> getProjectComponents()
Returns the components for this Project.

Returns:
the components for this Project.

getVersions

Collection<Version> getVersions()
Returns:
a Collection of Version for this project

getIssueTypes

Collection<IssueType> getIssueTypes()
Returns:
a Collection of IssueType for this project

getProjectCategory

org.ofbiz.core.entity.GenericValue getProjectCategory()
Deprecated. Use getProjectCategoryObject() instead. Since v5.1.

Returns:
a GV containing the project category information for this project.

getProjectCategoryObject

ProjectCategory getProjectCategoryObject()
Returns:
the project category information for this project.

getGenericValue

org.ofbiz.core.entity.GenericValue getGenericValue()
Deprecated. only use this if you need to utilize an older API method

Returns:
the GenericValue backing this project object

getAvatar

@NotNull
Avatar getAvatar()
Gives the currently-configured Avatar for this project.

Returns:
the current Avatar, never null.


Copyright © 2002-2013 Atlassian. All Rights Reserved.