com.atlassian.jira.issue.customfields.searchers.transformer
Class DefaultCustomFieldInputHelper
java.lang.Object
com.atlassian.jira.issue.customfields.searchers.transformer.DefaultCustomFieldInputHelper
- All Implemented Interfaces:
- CustomFieldInputHelper
@InjectableComponent
public class DefaultCustomFieldInputHelper
- extends Object
- implements CustomFieldInputHelper
Default implementation of CustomFieldInputHelper
- Since:
- v4.0
Method Summary |
String |
getUniqueClauseName(com.atlassian.crowd.embedded.api.User user,
String primaryName,
String fieldName)
Given the primary clause name and the field name, returns the "unique" clause name that should be used when
constructing terminal clauses for this clause name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCustomFieldInputHelper
public DefaultCustomFieldInputHelper(SearchHandlerManager searchHandlerManager)
getUniqueClauseName
public String getUniqueClauseName(com.atlassian.crowd.embedded.api.User user,
String primaryName,
String fieldName)
- Description copied from interface:
CustomFieldInputHelper
- Given the primary clause name and the field name, returns the "unique" clause name that should be used when
constructing terminal clauses for this clause name. Uniqueness is calculated per user; a name could be unique
for one user since he only has limited view of fields, but for another user it could be non-unique.
- Specified by:
getUniqueClauseName
in interface CustomFieldInputHelper
- Parameters:
user
- the user performing the searchprimaryName
- the primary name of a clause, e.g. cf[10000]
or project
fieldName
- the name of the field associated to the clause, e.g. My Custom Field
or project
- Returns:
- the clause name which should be used in construction of terminal clauses, to guarantee that this clause
refers only to the one specific field.
Copyright © 2002-2013 Atlassian. All Rights Reserved.