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


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

Field Detail

projectId

Long projectId

issueTypeId

String issueTypeId
Constructor Detail

IssueContextImpl

public IssueContextImpl(org.ofbiz.core.entity.GenericValue project,
                        org.ofbiz.core.entity.GenericValue issueType)
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

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Specified by:
getProject in interface IssueContext

getIssueType

public org.ofbiz.core.entity.GenericValue getIssueType()
Specified by:
getIssueType in interface IssueContext

getIssueTypeObject

public IssueType getIssueTypeObject()

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-2007 Atlassian. All Rights Reserved.