public class

FieldContextGenerator

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.FieldContextGenerator

Class Overview

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.

Summary

Public Constructors
FieldContextGenerator(FieldVisibilityManager fieldVisibilityManager)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FieldContextGenerator (FieldVisibilityManager fieldVisibilityManager)

Public Methods

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.