Enum Class FOSearchCriterionMode
java.lang.Object
java.lang.Enum<FOSearchCriterionMode>
org.ametys.web.frontoffice.search.instance.model.FOSearchCriterionMode
- All Implemented Interfaces:
Serializable
,Comparable<FOSearchCriterionMode>
,java.lang.constant.Constable
The mode of a
FOSearchCriterion
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe criterion is proposed for content profiled by user group tag.The criterion is proposed to the final user, with a restricted enumeration of choices.The criterion is static, i.e.The criterion is proposed to the final user. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract FOSearchCriterionMode.FoWrappedValue
getValue
(FOSearchCriterion searchCriterion, Map<String, Object> finalUserCriteria, Map<String, Object> contextualParameters) Gets the value from thecriterion
and the final user criteria.boolean
isStatic()
true
if the criterion is staticstatic FOSearchCriterionMode
Returns the enum constant of this class with the specified name.static FOSearchCriterionMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATIC
The criterion is static, i.e. valued by the webmaster and is not a proposed criterion to the final user. -
USER_INPUT
The criterion is proposed to the final user. -
RESTRICTED_USER_INPUT
The criterion is proposed to the final user, with a restricted enumeration of choices. -
PROFILED_GROUPS_TAGS_INPUT
The criterion is proposed for content profiled by user group tag.
-
-
Field Details
-
NONE_VALUE
The none value- See Also:
-
PROFILED_GROUPS_TAGS_VALUE
The profiled groups tags value- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public abstract FOSearchCriterionMode.FoWrappedValue getValue(FOSearchCriterion searchCriterion, Map<String, Object> finalUserCriteria, Map<String, Object> contextualParameters) Gets the value from thecriterion
and the final user criteria.- Parameters:
searchCriterion
- TheFOSearchCriterion
which is in this modefinalUserCriteria
- The criteria from the final usercontextualParameters
- The contextual parameters- Returns:
- the value
-
isStatic
true
if the criterion is static- Returns:
true
if the criterion is static
-