public class ProjectsLeadByUserFunction extends AbstractUserBasedFunction
This function expects zero or one argument. If zero arguments are supplied the current logged in user will be used as project lead.
Modifier and Type | Field and Description |
---|---|
static String |
FUNCTION_PROJECTS_LEAD_BY_USER |
userUtil
Constructor and Description |
---|
ProjectsLeadByUserFunction(PermissionManager permissionManager,
ProjectManager projectManager,
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, validate
getFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgs
public static final String FUNCTION_PROJECTS_LEAD_BY_USER
public ProjectsLeadByUserFunction(PermissionManager permissionManager, ProjectManager projectManager, UserUtil userUtil)
public JiraDataType getDataType()
JqlFunction
JiraDataType
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.
JiraDataTypes
protected List<QueryLiteral> getFunctionValuesList(QueryCreationContext queryCreationContext, FunctionOperand functionOperand, ApplicationUser user)
AbstractUserBasedFunction
getFunctionValuesList
in class AbstractUserBasedFunction
queryCreationContext
- the context of query creationfunctionOperand
- the operand to get values fromuser
- the userprotected String getUserNotFoundMessageKey()
AbstractUserBasedFunction
getUserNotFoundMessageKey
in class AbstractUserBasedFunction
Copyright © 2002-2017 Atlassian. All Rights Reserved.