Package com.atlassian.jira.issue.context
Class ProjectContext
java.lang.Object
com.atlassian.jira.issue.context.AbstractJiraContext
com.atlassian.jira.issue.context.ProjectContext
- All Implemented Interfaces:
IssueContext,JiraContextNode,Comparable<JiraContextNode>
-
Field Summary
FieldsFields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBALFields inherited from interface com.atlassian.jira.issue.context.JiraContextNode
FIELD_PROJECT -
Constructor Summary
ConstructorsConstructorDescriptionProjectContext(IssueContext issueContext, JiraContextTreeManager treeManager) Deprecated.ProjectContext(Project project, JiraContextTreeManager treeManager) Deprecated.ProjectContext(Long projectId) ProjectContext(Long projectId, JiraContextTreeManager treeManager) Deprecated.ProjectContext(Long projectId, ProjectManager projectManager) -
Method Summary
Modifier and TypeMethodDescriptionappendToParamsMap(Map<String, Object> input) Copy the supplied parameters and add new ones.booleanGets the IssueType for this IssueContext.Gets the ID of the IssueType for this IssueContext.Gets the IssueType for this IssueContext.Gets the ID of the Project for this IssueContext.Gets the Project for this IssueContext.inthashCode()booleantoString()Methods inherited from class com.atlassian.jira.issue.context.AbstractJiraContext
compareTo, isInContext
-
Field Details
-
projectCategory
-
projectId
-
-
Constructor Details
-
ProjectContext
-
ProjectContext
Deprecated.UseProjectContext(Long, com.atlassian.jira.project.ProjectManager)instead. Since v6.4. -
ProjectContext
- Since:
- 6.4
-
ProjectContext
Deprecated.UseProjectContext(Long, com.atlassian.jira.project.ProjectManager)instead. Since v6.4. -
ProjectContext
Deprecated.UseProjectContext(Long, com.atlassian.jira.project.ProjectManager)instead. Since v6.4.
-
-
Method Details
-
getParent
- Returns:
- This context's parent, or null if it is the root context.
-
hasParentContext
public boolean hasParentContext()- Returns:
- Whether or not this context has a parent context.
-
appendToParamsMap
Description copied from interface:JiraContextNodeCopy the supplied parameters and add new ones.- Parameters:
input- to copy from- Returns:
- the copied map
-
getProjectObject
Description copied from interface:IssueContextGets the Project for this IssueContext.A null return value is used to represent that this context applies to all Projects.
- Returns:
- The Project for this IssueContext (can be null).
-
getProjectId
Description copied from interface:IssueContextGets the ID of the Project for this IssueContext.A null return value is used to represent that this context applies to all Projects.
- Returns:
- The ID of the Project for this IssueContext (can be null).
-
getIssueTypeObject
Description copied from interface:IssueContextGets the IssueType for this IssueContext.A null return value is used to represent that this context applies to all IssueTypes.
- Returns:
- The IssueType for this IssueContext (can be null).
-
getIssueType
Description copied from interface:IssueContextGets the IssueType for this IssueContext.A null return value is used to represent that this context applies to all IssueTypes.
- Returns:
- The IssueType for this IssueContext (can be null).
-
getIssueTypeId
Description copied from interface:IssueContextGets the ID of the IssueType for this IssueContext.A null return value is used to represent that this context applies to all IssueTypes.
- Returns:
- The ID of the IssueType for this IssueContext (can be null).
-
equals
- Overrides:
equalsin classAbstractJiraContext
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractJiraContext
-
toString
- Overrides:
toStringin classAbstractJiraContext
-
ProjectContext(Long, com.atlassian.jira.project.ProjectManager)instead.