com.atlassian.jira.issue.context
Class IssueContextImpl

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

public class IssueContextImpl
extends Object
implements IssueContext, Comparable


Constructor Summary
IssueContextImpl(Long projectId, String issueTypeId)
          Create a context.
IssueContextImpl(Project project, IssueType issueType)
          Create a context.
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 org.ofbiz.core.entity.GenericValue getIssueType()
          Gets the IssueType for this IssueContext.
 IssueType getIssueTypeObject()
          Gets the IssueType for this IssueContext.
 org.ofbiz.core.entity.GenericValue getProject()
          Gets the Project for this IssueContext.
 Project getProjectObject()
          Gets the Project for this IssueContext.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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

getProject

public org.ofbiz.core.entity.GenericValue getProject()
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:
getProject in interface IssueContext
Returns:
The Project for this IssueContext (can be null).

getIssueType

public org.ofbiz.core.entity.GenericValue 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).

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.