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 |
globalPermissionManager, userManager
Constructor and Description |
---|
ComponentsLeadByUserFunction(PermissionManager permissionManager,
ProjectComponentManager componentManager,
UserManager userManager,
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, validateQuery
getFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgs
public static final String FUNCTION_COMPONENTS_LEAD_BY_USER
public ComponentsLeadByUserFunction(PermissionManager permissionManager, ProjectComponentManager componentManager, UserManager userManager, GlobalPermissionManager globalPermissionManager)
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-2023 Atlassian. All Rights Reserved.