@Component(value="blDataDrivenEnumVariableExpression") @ConditionalOnTemplating public class DataDrivenEnumVariableExpression extends Object implements BroadleafVariableExpression
DataDrivenEnumerationValue
s based on its enum keyModifier and Type | Field and Description |
---|---|
protected DataDrivenEnumerationService |
enumService |
Constructor and Description |
---|
DataDrivenEnumVariableExpression() |
Modifier and Type | Method and Description |
---|---|
List<DataDrivenEnumerationValue> |
getEnumValues(String key)
Looks up a list of
DataDrivenEnumerationValue by the DataDrivenEnumeration.getKey() specified by key |
List<DataDrivenEnumerationValue> |
getEnumValues(String key,
String sort)
Looks up a list of
DataDrivenEnumerationValue by the DataDrivenEnumeration.getKey() specified by key |
String |
getName() |
protected DataDrivenEnumerationService enumService
public String getName()
getName
in interface BroadleafVariableExpression
public List<DataDrivenEnumerationValue> getEnumValues(String key)
DataDrivenEnumerationValue
by the DataDrivenEnumeration.getKey()
specified by keykey
- lookup for the DataDrivenEnumeration
DataDrivenEnumerationValue
for the given keypublic List<DataDrivenEnumerationValue> getEnumValues(String key, String sort)
DataDrivenEnumerationValue
by the DataDrivenEnumeration.getKey()
specified by keykey
- lookup for the DataDrivenEnumeration
sort
- optional, either 'ASCENDING' or 'DESCENDING' depending on how you want the result list sortedDataDrivenEnumerationValue
for the given keyCopyright © 2022. All rights reserved.