Class ProjectContext

java.lang.Object
com.atlassian.jira.issue.context.AbstractJiraContext
com.atlassian.jira.issue.context.ProjectContext
All Implemented Interfaces:
IssueContext, JiraContextNode, Comparable<JiraContextNode>

@PublicApi public class ProjectContext extends AbstractJiraContext
  • Field Details

    • projectCategory

      protected Long projectCategory
    • projectId

      protected Long projectId
  • Constructor Details

  • Method Details

    • getParent

      public JiraContextNode 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

      public Map<String,Object> appendToParamsMap(Map<String,Object> input)
      Description copied from interface: JiraContextNode
      Copy the supplied parameters and add new ones.
      Parameters:
      input - to copy from
      Returns:
      the copied map
    • getProjectObject

      public Project getProjectObject()
      Description copied from interface: IssueContext
      Gets 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

      public Long getProjectId()
      Description copied from interface: IssueContext
      Gets 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

      public IssueType getIssueTypeObject()
      Description copied from interface: IssueContext
      Gets 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

      public IssueType getIssueType()
      Description copied from interface: IssueContext
      Gets 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

      public String getIssueTypeId()
      Description copied from interface: IssueContext
      Gets 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

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractJiraContext
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractJiraContext
    • toString

      public String toString()
      Overrides:
      toString in class AbstractJiraContext