public class ComponentsLeadByUserFunction extends AbstractUserBasedFunction
This function expects zero or one argument. If zero arguments are supplied the current logged in user will be used as component lead.
| Modifier and Type | Field and Description |
|---|---|
static String |
FUNCTION_COMPONENTS_LEAD_BY_USER |
userUtil| Constructor and Description |
|---|
ComponentsLeadByUserFunction(PermissionManager permissionManager,
ProjectComponentManager componentManager,
UserUtil userUtil) |
| Modifier and Type | Method and Description |
|---|---|
JiraDataType |
getDataType()
Provides the
JiraDataType that this function handles and creates values for. |
protected List<QueryLiteral> |
getFunctionValuesList(QueryCreationContext queryCreationContext,
FunctionOperand functionOperand,
ApplicationUser user)
Get the function return values based on the actual user.
|
protected String |
getUserNotFoundMessageKey()
Get the I18n message key for the error when the passed in user does not exist.
|
getMinimumNumberOfExpectedArguments, getValues, validategetFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgspublic static final String FUNCTION_COMPONENTS_LEAD_BY_USER
public ComponentsLeadByUserFunction(PermissionManager permissionManager, ProjectComponentManager componentManager, UserUtil userUtil)
public JiraDataType getDataType()
JqlFunctionJiraDataType that this function handles and creates values for. This
allows us to infer some information about how it will interact with other elements in the system.
For example, if this returns JiraDataTypes.DATE then we know that we can provide
values for any clauses that also specify a data type of DATE.
JiraDataTypesprotected List<QueryLiteral> getFunctionValuesList(QueryCreationContext queryCreationContext, FunctionOperand functionOperand, ApplicationUser user)
AbstractUserBasedFunctiongetFunctionValuesList in class AbstractUserBasedFunctionqueryCreationContext - the context of query creationfunctionOperand - the operand to get values fromuser - the userprotected String getUserNotFoundMessageKey()
AbstractUserBasedFunctiongetUserNotFoundMessageKey in class AbstractUserBasedFunctionCopyright © 2002-2018 Atlassian. All Rights Reserved.