Class IssueContextImpl

java.lang.Object
com.atlassian.jira.issue.context.IssueContextImpl
All Implemented Interfaces:
IssueContext, Comparable

public class IssueContextImpl extends Object implements IssueContext, Comparable
  • Constructor Details

    • IssueContextImpl

      public IssueContextImpl(@Nullable Long projectId, @Nullable String issueTypeId)
      Create a context.
      Parameters:
      projectId - Project ID, or null if field is not scoped by project.
      issueTypeId - IssueType ID, or null if field is not scoped by issue type.
    • IssueContextImpl

      public IssueContextImpl(@Nullable Project project, @Nullable IssueType issueType)
      Create a context.
      Parameters:
      project - Project, or null if field is not scoped by project.
      issueType - IssueType, or null if field is not scoped by issue type.
  • Method Details

    • 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.

      Specified by:
      getProjectObject in interface IssueContext
      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.

      Specified by:
      getProjectId in interface IssueContext
      Returns:
      The ID of the Project 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.

      Specified by:
      getIssueType in interface IssueContext
      Returns:
      The IssueType 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.

      Specified by:
      getIssueTypeObject in interface IssueContext
      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.

      Specified by:
      getIssueTypeId in interface IssueContext
      Returns:
      The ID of the IssueType for this IssueContext (can be null).
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Object obj)
      Specified by:
      compareTo in interface Comparable
    • toString

      public String toString()
      Overrides:
      toString in class Object