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 |
globalPermissionManager, userUtil| Constructor and Description |
|---|
ProjectsLeadByUserFunction(PermissionManager permissionManager,
ProjectManager projectManager,
UserUtil userUtil,
GlobalPermissionManager globalPermissionManager) |
| 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.
|
getMessageForDisallowedAnonymousAccess, getMinimumNumberOfExpectedArguments, getValues, isAnonymousAccessAllowed, validate, validateQuerygetFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgspublic static final String FUNCTION_PROJECTS_LEAD_BY_USER
public ProjectsLeadByUserFunction(PermissionManager permissionManager, ProjectManager projectManager, UserUtil userUtil, GlobalPermissionManager globalPermissionManager)
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-2021 Atlassian. All Rights Reserved.