@PublicApi public class

ProjectContext

extends AbstractJiraContext
java.lang.Object
   ↳ com.atlassian.jira.issue.context.AbstractJiraContext
     ↳ com.atlassian.jira.issue.context.ProjectContext

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.issue.context.JiraContextNode
Fields
protected Long projectCategory
protected Long projectId
[Expand]
Inherited Fields
From interface com.atlassian.jira.issue.context.IssueContext
Public Constructors
ProjectContext(Long projectId)
ProjectContext(Long projectId, JiraContextTreeManager treeManager)
ProjectContext(GenericValue project, JiraContextTreeManager treeManager)
This constructor is deprecated. Use ProjectContext(Project, JiraContextTreeManager) instead. Since v5.0.
ProjectContext(Project project, JiraContextTreeManager treeManager)
ProjectContext(IssueContext issueContext, JiraContextTreeManager treeManager)
Public Methods
Map<StringObject> appendToParamsMap(Map<StringObject> input)
boolean equals(Object o)
GenericValue getIssueType()
String getIssueTypeId()
IssueType getIssueTypeObject()
BandanaContext getParentContext()
GenericValue getProject()
GenericValue getProjectCategory()
ProjectCategory getProjectCategoryObject()
Long getProjectId()
Project getProjectObject()
boolean hasParentContext()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class com.atlassian.jira.issue.context.AbstractJiraContext
From class java.lang.Object
From interface com.atlassian.bandana.BandanaContext
From interface com.atlassian.jira.issue.context.IssueContext
From interface com.atlassian.jira.issue.context.JiraContextNode
From interface java.lang.Comparable

Fields

protected Long projectCategory

protected Long projectId

Public Constructors

public ProjectContext (Long projectId)

public ProjectContext (Long projectId, JiraContextTreeManager treeManager)

public ProjectContext (GenericValue project, JiraContextTreeManager treeManager)

This constructor is deprecated.
Use ProjectContext(Project, JiraContextTreeManager) instead. Since v5.0.

public ProjectContext (Project project, JiraContextTreeManager treeManager)

public ProjectContext (IssueContext issueContext, JiraContextTreeManager treeManager)

Public Methods

public Map<StringObject> appendToParamsMap (Map<StringObject> input)

public boolean equals (Object o)

public GenericValue getIssueType ()

public String getIssueTypeId ()

public IssueType getIssueTypeObject ()

public BandanaContext getParentContext ()

public GenericValue getProject ()

public GenericValue getProjectCategory ()

public ProjectCategory getProjectCategoryObject ()

public Long getProjectId ()

public Project getProjectObject ()

public boolean hasParentContext ()

public int hashCode ()

public String toString ()