com.atlassian.jira.issue.context
Class GlobalIssueContext

java.lang.Object
  extended by com.atlassian.jira.issue.context.AbstractJiraContext
      extended by com.atlassian.jira.issue.context.GlobalIssueContext
All Implemented Interfaces:
com.atlassian.bandana.BandanaContext, IssueContext, JiraContextNode, Serializable, Comparable

public class GlobalIssueContext
extends AbstractJiraContext
implements Comparable

See Also:
Serialized Form

Field Summary
static String GLOBAL_CONTEXT_STR
           
 
Fields inherited from interface com.atlassian.jira.issue.context.JiraContextNode
FIELD_CONFIG, FIELD_ISSUE_TYPE, FIELD_PROJECT, FIELD_PROJECT_CATEGORY
 
Constructor Summary
GlobalIssueContext(JiraContextTreeManager treeManager)
           
 
Method Summary
 void appendToParamsMap(Map props)
           
 List getChildContexts()
           
static JiraContextNode getInstance()
           
 org.ofbiz.core.entity.GenericValue getIssueType()
          Gets the IssueType for this IssueContext.
 IssueType getIssueTypeObject()
          Gets the IssueType for this IssueContext.
 com.atlassian.bandana.BandanaContext getParentContext()
           
 org.ofbiz.core.entity.GenericValue getProject()
          Gets the Project for this IssueContext.
 org.ofbiz.core.entity.GenericValue getProjectCategory()
           
 Project getProjectObject()
          Gets the Project for this IssueContext.
 boolean hasParentContext()
           
 boolean isInContext(IssueContext issueContext)
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.issue.context.AbstractJiraContext
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

GLOBAL_CONTEXT_STR

public static final String GLOBAL_CONTEXT_STR
See Also:
Constant Field Values
Constructor Detail

GlobalIssueContext

public GlobalIssueContext(JiraContextTreeManager treeManager)
Method Detail

appendToParamsMap

public void appendToParamsMap(Map props)
Specified by:
appendToParamsMap in interface JiraContextNode

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

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

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

getProjectCategory

public org.ofbiz.core.entity.GenericValue getProjectCategory()
Specified by:
getProjectCategory in interface JiraContextNode

isInContext

public boolean isInContext(IssueContext issueContext)
Specified by:
isInContext in interface JiraContextNode
Overrides:
isInContext in class AbstractJiraContext

getParentContext

public com.atlassian.bandana.BandanaContext getParentContext()
Specified by:
getParentContext in interface com.atlassian.bandana.BandanaContext

hasParentContext

public boolean hasParentContext()
Specified by:
hasParentContext in interface com.atlassian.bandana.BandanaContext

getInstance

public static JiraContextNode getInstance()

toString

public String toString()
Overrides:
toString in class AbstractJiraContext

getChildContexts

public List getChildContexts()
Specified by:
getChildContexts in interface JiraContextNode


Copyright © 2002-2009 Atlassian. All Rights Reserved.