public abstract class AbstractDateFunction extends AbstractJqlFunction
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDateFunction.UNIT |
| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.core.util.Clock |
clock |
protected TimeZoneManager |
timeZoneManager |
| Modifier and Type | Method and Description |
|---|---|
JiraDataType |
getDataType()
Provides the
JiraDataType that this function handles and creates values for. |
protected int |
getDurationAmount(String duration) |
protected int |
getDurationUnit(String duration) |
int |
getMinimumNumberOfExpectedArguments()
This method must return the number of arguments that the function expects to perform its operation correctly.
|
MessageSet |
validate(ApplicationUser searcher,
FunctionOperand operand,
TerminalClause terminalClause)
Will validate the function operand's arguments and report back any errors.
|
getFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuesprotected final com.atlassian.core.util.Clock clock
protected final TimeZoneManager timeZoneManager
public MessageSet validate(ApplicationUser searcher, FunctionOperand operand, TerminalClause terminalClause)
JqlFunctionsearcher - the user performing the searchoperand - the operand to validateterminalClause - the terminal clause that contains the operandprotected int getDurationAmount(String duration)
protected int getDurationUnit(String duration)
public int getMinimumNumberOfExpectedArguments()
JqlFunctionpublic 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.
JiraDataTypesCopyright © 2002-2018 Atlassian. All Rights Reserved.