|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.jql.context.FieldConfigSchemeClauseContextUtil
@InjectableComponent public class FieldConfigSchemeClauseContextUtil
A utlitilty class for generating the clause context specified by
a FieldConfigScheme
, taking
into account what is visible to the searcher.
Constructor Summary | |
---|---|
FieldConfigSchemeClauseContextUtil(IssueTypeSchemeManager issueTypeSchemeManager,
ConstantsManager constantsManager,
PermissionManager permissionManager,
ProjectFactory projectFactory)
|
Method Summary | |
---|---|
ClauseContext |
getContextForConfigScheme(com.atlassian.crowd.embedded.api.User searcher,
FieldConfigScheme fieldConfigScheme)
Given a FieldConfigScheme determines the
ClauseContext specified by it, taking into account
what is visible to the searcher User |
FieldConfigScheme |
getFieldConfigSchemeFromContext(QueryContext queryContext,
CustomField customField)
Finds the most specific FieldConfigScheme associated with a CustomField
that is viewable from the given QueryContext . |
boolean |
isConfigSchemeVisibleUnderContext(QueryContext queryContext,
FieldConfigScheme fieldConfigScheme)
Checks if the FieldConfigScheme is visible under the given
QueryContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldConfigSchemeClauseContextUtil(IssueTypeSchemeManager issueTypeSchemeManager, ConstantsManager constantsManager, PermissionManager permissionManager, ProjectFactory projectFactory)
Method Detail |
---|
public boolean isConfigSchemeVisibleUnderContext(QueryContext queryContext, FieldConfigScheme fieldConfigScheme)
FieldConfigScheme
is visible under the given
QueryContext
queryContext
- the QueryContext
of the search and user.fieldConfigScheme
- the scheme to to check is visible
FieldConfigScheme
is visible under the QueryContext
, false otherwise.public FieldConfigScheme getFieldConfigSchemeFromContext(QueryContext queryContext, CustomField customField)
FieldConfigScheme
associated with a CustomField
that is viewable from the given QueryContext
. The "Most Specific" means it will always return
a FieldConfigScheme with a defined project context if available, otherwise it will return
the FieldConfigScheme with the global context (if visible). If no FieldConfigScheme is visible under the QueryContext
null is returned.
queryContext
- The QueryContext to find the most specific visible FieldConfigScheme
for.customField
- The custom field to retreive FieldConfigScheme
s from.
FieldConfigScheme
on teh CustomField
that is visible to the QueryContext
, null if no FieldConfigScheme
is visible.public ClauseContext getContextForConfigScheme(com.atlassian.crowd.embedded.api.User searcher, FieldConfigScheme fieldConfigScheme)
FieldConfigScheme
determines the
ClauseContext
specified by it, taking into account
what is visible to the searcher User
searcher
- the user the ClauseContext
is generated forfieldConfigScheme
- the config scheme the ClauseContext
is generated for
FieldConfigScheme
and searchers visibility
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |