Class BooleanQueryFactoryParameter
- java.lang.Object
-
- com.atlassian.confluence.macro.params.BaseParameter<BooleanQueryFactory>
-
- com.atlassian.confluence.macro.query.params.BooleanQueryFactoryParameter
-
- All Implemented Interfaces:
Parameter<BooleanQueryFactory>
- Direct Known Subclasses:
ContentTypeParameter
,LabelParameter
,SpaceKeyParameter
public abstract class BooleanQueryFactoryParameter extends BaseParameter<BooleanQueryFactory>
Parameter that parses its values intoBooleanQueryFactory
instances.- Since:
- 2.9
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.macro.params.BaseParameter
shouldValidate
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BooleanQueryFactoryParameter(String[] names, String defaultValue)
protected
BooleanQueryFactoryParameter(String name, String defaultValue)
protected
BooleanQueryFactoryParameter(List<String> names, String defaultValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected BooleanQueryFactory
createBooleanQueryFactory(String paramValue, MacroExecutionContext ctx)
protected abstract SearchQueryInterpreter
createSearchQueryInterpreter(MacroExecutionContext ctx)
protected BooleanQueryFactory
findObject(String paramValue, MacroExecutionContext ctx)
Responsible for converting a macro parameter string value to its proper object representation (say "1" to new Integer(1))void
setDefaultInclusionCriteria(InclusionCriteria criteria)
Sets the defaultInclusionCriteria
value to use in the underlying parser.-
Methods inherited from class com.atlassian.confluence.macro.params.BaseParameter
addParameterAlias, findValue, getDefaultValue, getParameter, getParameterValue, setDefaultValue, setParameterNames, setValidate
-
-
-
-
Method Detail
-
setDefaultInclusionCriteria
public final void setDefaultInclusionCriteria(InclusionCriteria criteria)
Sets the defaultInclusionCriteria
value to use in the underlying parser.- Parameters:
criteria
- the defaultInclusionCriteria
to use
-
findObject
protected final BooleanQueryFactory findObject(String paramValue, MacroExecutionContext ctx) throws ParameterException
Description copied from class:BaseParameter
Responsible for converting a macro parameter string value to its proper object representation (say "1" to new Integer(1))- Specified by:
findObject
in classBaseParameter<BooleanQueryFactory>
- Throws:
ParameterException
-
createSearchQueryInterpreter
protected abstract SearchQueryInterpreter createSearchQueryInterpreter(MacroExecutionContext ctx)
-
createBooleanQueryFactory
protected BooleanQueryFactory createBooleanQueryFactory(String paramValue, MacroExecutionContext ctx) throws ParameterException
- Throws:
ParameterException
-
-