@Component(value="blDataDrivenEnumVariableExpression") @ConditionalOnTemplating public class DataDrivenEnumVariableExpression extends Object implements BroadleafVariableExpression
DataDrivenEnumerationValues based on its enum key| Modifier 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  DataDrivenEnumerationValueby theDataDrivenEnumeration.getKey()specified by key | 
| List<DataDrivenEnumerationValue> | getEnumValues(String key,
             String sort)Looks up a list of  DataDrivenEnumerationValueby theDataDrivenEnumeration.getKey()specified by key | 
| String | getName() | 
protected DataDrivenEnumerationService enumService
public String getName()
getName in interface BroadleafVariableExpressionpublic List<DataDrivenEnumerationValue> getEnumValues(String key)
DataDrivenEnumerationValue by the DataDrivenEnumeration.getKey() specified by keykey - lookup for the DataDrivenEnumerationDataDrivenEnumerationValue for the given keypublic List<DataDrivenEnumerationValue> getEnumValues(String key, String sort)
DataDrivenEnumerationValue by the DataDrivenEnumeration.getKey() specified by keykey - lookup for the DataDrivenEnumerationsort - optional, either 'ASCENDING' or 'DESCENDING' depending on how you want the result list sortedDataDrivenEnumerationValue for the given keyCopyright © 2020. All rights reserved.