com.atlassian.jira.issue.context
Class IssueContextImpl

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

public class IssueContextImpl
extends java.lang.Object
implements IssueContext, java.lang.Comparable


Constructor Summary
IssueContextImpl(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue issueType)
          Deprecated. since 4.0 use IssueContextImpl(Long, String)
IssueContextImpl(java.lang.Long projectId, java.lang.String issueTypeId)
          Create a context.
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.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(java.lang.Long projectId,
                        java.lang.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(org.ofbiz.core.entity.GenericValue project,
                        org.ofbiz.core.entity.GenericValue issueType)
Deprecated. since 4.0 use IssueContextImpl(Long, String)

Create a context.

Parameters:
project - Eg. retrieved from ProjectManager.getProjectByKey(String), or null if field is not scoped by project.
issueType - eg. retrieved from ConstantsManager.getIssueType(String), 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(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2002-2010 Atlassian. All Rights Reserved.