com.atlassian.jira.issue.fields
Class FieldContextGenerator

java.lang.Object
  extended by com.atlassian.jira.issue.fields.FieldContextGenerator

public class FieldContextGenerator
extends Object

A utility that responsible for providing a SearchContext from a list of visible projects and a custom field whose configuration limits it to certain project/issuetype pairs.

Since:
v4.0

Constructor Summary
FieldContextGenerator(FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
 ClauseContext generateClauseContext(List<Project> projects, String fieldId)
          Creates the Contexts that represent the combinations of project and issue type for which the given field is visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldContextGenerator

public FieldContextGenerator(FieldVisibilityManager fieldVisibilityManager)
Method Detail

generateClauseContext

public ClauseContext generateClauseContext(List<Project> projects,
                                           String fieldId)
Creates the Contexts that represent the combinations of project and issue type for which the given field is visible.

Parameters:
projects - some projects to get SchemeContexts for.
fieldId - the field to use for visibility checking.
Returns:
the set of SchemeContexts.


Copyright © 2002-2013 Atlassian. All Rights Reserved.