Package com.atlassian.jira.issue.context
Class IssueContextImpl
java.lang.Object
com.atlassian.jira.issue.context.IssueContextImpl
- All Implemented Interfaces:
IssueContext
,Comparable
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBAL
-
Constructor Summary
ConstructorsConstructorDescriptionIssueContextImpl
(Project project, IssueType issueType) Create a context.IssueContextImpl
(Long projectId, String issueTypeId) Create a context. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Gets 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.int
hashCode()
toString()
-
Constructor Details
-
IssueContextImpl
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
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
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 interfaceIssueContext
- Returns:
- The Project for this IssueContext (can be null).
-
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 interfaceIssueContext
- Returns:
- The ID of the Project for this IssueContext (can be null).
-
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 interfaceIssueContext
- Returns:
- The IssueType for this IssueContext (can be null).
-
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 interfaceIssueContext
- Returns:
- The IssueType for this IssueContext (can be null).
-
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 interfaceIssueContext
- Returns:
- The ID of the IssueType for this IssueContext (can be null).
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable
-
toString
-