public class FOSearchCriterion extends Object
SearchServiceInstance
,
i.e. a filled line in the 'Criterion' page (third page) on the creation/edition dialog box of a search service.Modifier and Type | Field and Description |
---|---|
private SearchCriterionDefinition |
_criterionDefinition |
private String |
_id |
private FOSearchCriterionMode |
_mode |
private String |
_operator |
private EnumeratedValues.RestrictedValues |
_restrictedValues |
private Object |
_staticValue |
Constructor and Description |
---|
FOSearchCriterion(String id,
SearchCriterionDefinition criterionDefinition,
String operator,
FOSearchCriterionMode mode,
EnumeratedValues.RestrictedValues restrictedValues,
Object staticValue)
Creates a SearchCriterion for Front-Office search service
|
Modifier and Type | Method and Description |
---|---|
SearchCriterionDefinition |
getCriterionDefinition()
Gets the definition of the criterion
|
String |
getId()
Gets the id of the criterion
|
FOSearchCriterionMode |
getMode()
Gets the mode
|
String |
getOperator()
Gets the operator (as string)
|
Optional<EnumeratedValues.RestrictedValues> |
getRestrictedValues()
Gets the restricted values.
|
Optional<Object> |
getStaticValue()
Gets the static value.
|
private SearchCriterionDefinition _criterionDefinition
private FOSearchCriterionMode _mode
private EnumeratedValues.RestrictedValues _restrictedValues
private Object _staticValue
public FOSearchCriterion(String id, SearchCriterionDefinition criterionDefinition, String operator, FOSearchCriterionMode mode, EnumeratedValues.RestrictedValues restrictedValues, Object staticValue)
id
- the id of the criterioncriterionDefinition
- the definition of the criterionoperator
- the operator (as string)mode
- the moderestrictedValues
- the restricted values. Must be non-empty if mode is FOSearchCriterionMode.RESTRICTED_USER_INPUT
, must be empty otherwise.staticValue
- the static value. Must be non-empty if mode is FOSearchCriterionMode.STATIC
, must be empty otherwise.public SearchCriterionDefinition getCriterionDefinition()
public String getOperator()
public FOSearchCriterionMode getMode()
public Optional<EnumeratedValues.RestrictedValues> getRestrictedValues()
getMode()
returns FOSearchCriterionMode.RESTRICTED_USER_INPUT
, must be empty otherwise.public Optional<Object> getStaticValue()
getMode()
returns FOSearchCriterionMode.STATIC
, must be empty otherwise.