Enum FOSearchCriterionMode
- java.lang.Object
-
- java.lang.Enum<FOSearchCriterionMode>
-
- org.ametys.web.frontoffice.search.instance.model.FOSearchCriterionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<FOSearchCriterionMode>
public enum FOSearchCriterionMode extends Enum<FOSearchCriterionMode>
The mode of aFOSearchCriterion
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RESTRICTED_USER_INPUT
The criterion is proposed to the final user, with a restricted enumeration of choices.STATIC
The criterion is static, i.e.USER_INPUT
The criterion is proposed to the final user.
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.slf4j.Logger
__LOGGER
-
Constructor Summary
Constructors Modifier Constructor Description private
FOSearchCriterionMode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
getValue(FOSearchCriterion searchCriterion, Map<String,Object> finalUserCriteria, Map<String,Object> contextualParameters)
Gets the value from thecriterion
and the final user criteria.static FOSearchCriterionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static FOSearchCriterionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATIC
public static final FOSearchCriterionMode STATIC
The criterion is static, i.e. valued by the webmaster and is not a proposed criterion to the final user.
-
USER_INPUT
public static final FOSearchCriterionMode USER_INPUT
The criterion is proposed to the final user.
-
RESTRICTED_USER_INPUT
public static final FOSearchCriterionMode RESTRICTED_USER_INPUT
The criterion is proposed to the final user, with a restricted enumeration of choices.
-
-
Field Detail
-
__LOGGER
static final org.slf4j.Logger __LOGGER
-
-
Constructor Detail
-
FOSearchCriterionMode
private FOSearchCriterionMode()
-
-
Method Detail
-
values
public static FOSearchCriterionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FOSearchCriterionMode c : FOSearchCriterionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FOSearchCriterionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public abstract Object 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
-
-