Class TagSearchCriterionDefinition.TagEnumeratedValues
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.TagSearchCriterionDefinition.TagEnumeratedValues
-
- All Implemented Interfaces:
EnumeratedValues
- Enclosing class:
- TagSearchCriterionDefinition
static class TagSearchCriterionDefinition.TagEnumeratedValues extends Object implements EnumeratedValues
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.web.frontoffice.search.metamodel.EnumeratedValues
EnumeratedValues.RestrictedValues
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Map<String,Object>
_contextualParameters
(package private) TagSearchCriterionDefinition
_tagSearchCriterionDef
-
Constructor Summary
Constructors Constructor Description TagEnumeratedValues(TagSearchCriterionDefinition tagSearchCriterionDef, Map<String,Object> contextualParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Stream<Tag>
_getAllTags(TagProvider<? extends Tag> tagProvider)
private Stream<? extends Tag>
_getChildrenTags(Tag parentTag)
private Stream<Tag>
_getDescendantAndSelfTags(Tag parentTag)
(package private) Stream<Tag>
_getDescendantTags(Tag parentTag)
private boolean
_isTargetingContents(Tag tag)
Map<Object,I18nizableText>
getAllValues()
Gets all the values (with their label)EnumeratedValues.RestrictedValues
getRestrictedValuesFor(List<Object> objs)
Gets theEnumeratedValues.RestrictedValues
object
The implementation must decide whether or not the given objs must be validated amongall values
, if they must be converted, etc.
-
-
-
Field Detail
-
_tagSearchCriterionDef
TagSearchCriterionDefinition _tagSearchCriterionDef
-
_contextualParameters
Map<String,Object> _contextualParameters
-
-
Constructor Detail
-
TagEnumeratedValues
TagEnumeratedValues(TagSearchCriterionDefinition tagSearchCriterionDef, Map<String,Object> contextualParameters)
-
-
Method Detail
-
getAllValues
public Map<Object,I18nizableText> getAllValues()
Description copied from interface:EnumeratedValues
Gets all the values (with their label)- Specified by:
getAllValues
in interfaceEnumeratedValues
- Returns:
- all the values (with their label)
-
_getAllTags
private Stream<Tag> _getAllTags(TagProvider<? extends Tag> tagProvider)
-
_getDescendantAndSelfTags
private Stream<Tag> _getDescendantAndSelfTags(Tag parentTag)
-
_getDescendantTags
Stream<Tag> _getDescendantTags(Tag parentTag)
-
_getChildrenTags
private Stream<? extends Tag> _getChildrenTags(Tag parentTag)
-
_isTargetingContents
private boolean _isTargetingContents(Tag tag)
-
getRestrictedValuesFor
public EnumeratedValues.RestrictedValues getRestrictedValuesFor(List<Object> objs)
Description copied from interface:EnumeratedValues
Gets theEnumeratedValues.RestrictedValues
object
The implementation must decide whether or not the given objs must be validated amongall values
, if they must be converted, etc.- Specified by:
getRestrictedValuesFor
in interfaceEnumeratedValues
- Parameters:
objs
- The desired objects- Returns:
- the
EnumeratedValues.RestrictedValues
-
-