com.atlassian.jira.issue.context
Class ProjectContext

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

@PublicApi
public class ProjectContext
extends AbstractJiraContext

See Also:
Serialized Form

Field Summary
protected  Long projectCategory
           
protected  Long projectId
           
 
Fields inherited from interface com.atlassian.jira.issue.context.JiraContextNode
FIELD_PROJECT, FIELD_PROJECT_CATEGORY
 
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBAL
 
Constructor Summary
ProjectContext(org.ofbiz.core.entity.GenericValue project, JiraContextTreeManager treeManager)
          Deprecated. Use ProjectContext(Project, JiraContextTreeManager) instead. Since v5.0.
ProjectContext(IssueContext issueContext, JiraContextTreeManager treeManager)
           
ProjectContext(Long projectId)
           
ProjectContext(Long projectId, JiraContextTreeManager treeManager)
           
ProjectContext(Project project, JiraContextTreeManager treeManager)
           
 
Method Summary
 Map<String,Object> appendToParamsMap(Map<String,Object> input)
          Copy the supplied parameters and add new ones.
 boolean equals(Object o)
           
 org.ofbiz.core.entity.GenericValue getIssueType()
          Gets the IssueType for this IssueContext.
 String getIssueTypeId()
          Gets the ID of 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()
           
 ProjectCategory getProjectCategoryObject()
           
 Long getProjectId()
          Gets the ID of the Project for this IssueContext.
 Project getProjectObject()
          Gets the Project for this IssueContext.
 int hashCode()
           
 boolean hasParentContext()
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.issue.context.AbstractJiraContext
compareTo, isInContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

projectCategory

protected Long projectCategory

projectId

protected Long projectId
Constructor Detail

ProjectContext

public ProjectContext(Long projectId)

ProjectContext

public ProjectContext(Long projectId,
                      JiraContextTreeManager treeManager)

ProjectContext

public ProjectContext(org.ofbiz.core.entity.GenericValue project,
                      JiraContextTreeManager treeManager)
Deprecated. Use ProjectContext(Project, JiraContextTreeManager) instead. Since v5.0.


ProjectContext

public ProjectContext(Project project,
                      JiraContextTreeManager treeManager)

ProjectContext

public ProjectContext(IssueContext issueContext,
                      JiraContextTreeManager treeManager)
Method Detail

getParentContext

public com.atlassian.bandana.BandanaContext getParentContext()

hasParentContext

public boolean hasParentContext()

appendToParamsMap

public Map<String,Object> appendToParamsMap(Map<String,Object> input)
Description copied from interface: JiraContextNode
Copy the supplied parameters and add new ones.

Parameters:
input - to copy from
Returns:
the copied map

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.

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.

Returns:
The Project for this IssueContext (can be null).

getProjectId

public Long 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.

Returns:
The ID of the Project for this IssueContext (can be null).

getProjectCategory

public org.ofbiz.core.entity.GenericValue getProjectCategory()
Returns:
ProjectCategory

getProjectCategoryObject

public ProjectCategory getProjectCategoryObject()

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.

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.

Returns:
The IssueType for this IssueContext (can be null).

getIssueTypeId

public String 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.

Returns:
The ID of the IssueType for this IssueContext (can be null).

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractJiraContext

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractJiraContext

toString

public String toString()
Overrides:
toString in class AbstractJiraContext


Copyright © 2002-2014 Atlassian. All Rights Reserved.