Package com.atlassian.jira.project
Class ProjectImpl
java.lang.Object
com.atlassian.jira.project.ProjectImpl
- All Implemented Interfaces:
WithId
,WithKey
,Project
,Named
,NamedWithDescription
Represents an immutable Project domain object for JIRA.
-
Field Summary
Fields inherited from interface com.atlassian.jira.util.Named
NAME_COMPARATOR
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the default assignee for issues that get created in this project.Gives the currently-configuredAvatar
for this project.Returns the components for this Project.Returns the timestamp when this project was created.Returns the creator of the project.Returns the ID of the project creator.getEmail()
org.ofbiz.core.entity.GenericValue
getId()
getKey()
Returns the timestamp when this project was lastly updated.Returns the last updater of the project.Returns the ID of the user who lastly updated project.getLead()
getName()
Returns the Project Category for this Project.Returns the components for this Project.Returns the key of the project type for this project.getUrl()
int
hashCode()
boolean
toString()
-
Constructor Details
-
ProjectImpl
public ProjectImpl(org.ofbiz.core.entity.GenericValue projectGv)
-
-
Method Details
-
getId
-
getName
-
getKey
-
getUrl
-
getEmail
-
getProjectLead
- Specified by:
getProjectLead
in interfaceProject
- Returns:
- the Project Lead
-
getLead
-
getLeadUserName
- Specified by:
getLeadUserName
in interfaceProject
- Returns:
- the user name of the project lead
-
getLeadUserKey
- Specified by:
getLeadUserKey
in interfaceProject
- Returns:
- the Project Lead's userkey
-
getOriginalKey
- Specified by:
getOriginalKey
in interfaceProject
- Returns:
- the project key with which Project was originally created
-
isArchived
public boolean isArchived()- Specified by:
isArchived
in interfaceProject
- Returns:
- true if this project is archived.
-
getArchivedBy
- Specified by:
getArchivedBy
in interfaceProject
- Returns:
- the user who archived this project, or null if it wasn't archived.
-
getArchivedDate
- Specified by:
getArchivedDate
in interfaceProject
- Returns:
Date
when this project was archived, or null if it wasn't archived.
-
getDescription
- Specified by:
getDescription
in interfaceNamedWithDescription
- Specified by:
getDescription
in interfaceProject
- Returns:
- the project description
-
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 interfaceProject
- Returns:
Timestamp
when this project was created, or null by default.
-
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 interfaceProject
- Returns:
Long
the project creator's ID, or null by default.
-
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 interfaceProject
- Returns:
ApplicationUser
the creator of the project, or null by default.
-
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 interfaceProject
- Returns:
Timestamp
when this project was updated, or null by default.
-
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 interfaceProject
- Returns:
Long
the project updater's ID, or null by default.
-
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 interfaceProject
- Returns:
ApplicationUser
the updater of the project, or null by default.
-
getAssigneeType
Description copied from interface:Project
Returns the default assignee for issues that get created in this project. ReturnsAssigneeTypes.PROJECT_LEAD
orAssigneeTypes.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 interfaceProject
- Returns:
- the default assignee. NB: Can return NULL
-
getProjectTypeKey
Description copied from interface:Project
Returns the key of the project type for this project.- Specified by:
getProjectTypeKey
in interfaceProject
- Returns:
- The key of the project type for this project.
-
getComponents
Description copied from interface:Project
Returns the components for this Project.- Specified by:
getComponents
in interfaceProject
- Returns:
- the components for this Project.
-
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 interfaceProject
- Returns:
- the components for this Project.
- See Also:
-
getVersions
- Specified by:
getVersions
in interfaceProject
- Returns:
- a Collection of
Version
for this project
-
getIssueTypes
- Specified by:
getIssueTypes
in interfaceProject
- Returns:
- a Collection of
IssueType
for this project
-
getProjectCategory
- Specified by:
getProjectCategory
in interfaceProject
- Returns:
- the project category information for this project.
-
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 interfaceProject
- Returns:
- the project category information for this project.
- See Also:
-
getAvatar
Description copied from interface:Project
Gives the currently-configuredAvatar
for this project. -
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()- Specified by:
getGenericValue
in interfaceProject
- Returns:
- the GenericValue backing this project object
-
equals
-
hashCode
public int hashCode() -
toString
-