Class RestrictedWrappedEnumerator<T>
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.RestrictedWrappedEnumerator<T>
- Type Parameters:
T
- Type of the values
- All Implemented Interfaces:
Enumerator<T>
,RestrictedEnumerator<T>
Represents a
RestrictedEnumerator
wrapping a classic Enumerator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.frontoffice.search.metamodel.RestrictedEnumerator
RestrictedEnumerator.RestrictedValues<T>
-
Constructor Summary
ConstructorsConstructorDescriptionRestrictedWrappedEnumerator
(Enumerator<T> enumerator, String criterionDefinitionName) Constructor used to createRestrictedEnumerator
wrapping a classicEnumerator
-
Method Summary
Modifier and TypeMethodDescriptionProvides the enumerated values with their optional label.getRestrictedEntriesFor
(List<T> objs) Gets theRestrictedEnumerator.RestrictedValues
object
The implementation must decide whether or not the given objects must be validated amongall values
, if they must be converted, etc.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.runtime.model.Enumerator
getConfiguration, getEntry
-
Constructor Details
-
RestrictedWrappedEnumerator
Constructor used to createRestrictedEnumerator
wrapping a classicEnumerator
- Parameters:
enumerator
- the wrapped classicEnumerator
criterionDefinitionName
- the name of the criterion definition
-
-
Method Details
-
getEntries
Description copied from interface:Enumerator
Provides the enumerated values with their optional label.- Specified by:
getEntries
in interfaceEnumerator<T>
- Returns:
- the enumerated values and their label.
- Throws:
Exception
- if an error occurs.
-
getRestrictedEntriesFor
Description copied from interface:RestrictedEnumerator
Gets theRestrictedEnumerator.RestrictedValues
object
The implementation must decide whether or not the given objects must be validated amongall values
, if they must be converted, etc.- Specified by:
getRestrictedEntriesFor
in interfaceRestrictedEnumerator<T>
- Parameters:
objs
- The desired objects- Returns:
- the
RestrictedEnumerator.RestrictedValues
-