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 createRestrictedEnumeratorwrapping a classicEnumerator -
Method Summary
Modifier and TypeMethodDescriptionProvides the enumerated values with their optional label.getRestrictedEntriesFor(List<T> objs) Gets theRestrictedEnumerator.RestrictedValuesobject
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, waitMethods inherited from interface org.ametys.runtime.model.Enumerator
getConfiguration, getEntry
-
Constructor Details
-
RestrictedWrappedEnumerator
Constructor used to createRestrictedEnumeratorwrapping a classicEnumerator- Parameters:
enumerator- the wrapped classicEnumeratorcriterionDefinitionName- the name of the criterion definition
-
-
Method Details
-
getEntries
Description copied from interface:EnumeratorProvides the enumerated values with their optional label.- Specified by:
getEntriesin interfaceEnumerator<T>- Returns:
- the enumerated values and their label.
- Throws:
Exception- if an error occurs.
-
getRestrictedEntriesFor
Description copied from interface:RestrictedEnumeratorGets theRestrictedEnumerator.RestrictedValuesobject
The implementation must decide whether or not the given objects must be validated amongall values, if they must be converted, etc.- Specified by:
getRestrictedEntriesForin interfaceRestrictedEnumerator<T>- Parameters:
objs- The desired objects- Returns:
- the
RestrictedEnumerator.RestrictedValues
-