public interface EnumerationService
| Modifier and Type | Method and Description |
|---|---|
String |
getEnumerationName(HybrisEnumValue enumValue)
Provides name for enumeration value (in the current language).
|
String |
getEnumerationName(HybrisEnumValue enumValue,
Locale locale)
Provides name for enumeration value using the given locale.
|
<T extends HybrisEnumValue> |
getEnumerationValue(Class<T> enumClass,
String valueCode)
Returns the Enumeration with matching given enumeration class and value.
|
<T extends HybrisEnumValue> |
getEnumerationValue(String enumerationCode,
String valueCode)
Returns the Enumeration with matching given enumeration code and value.
|
<T extends HybrisEnumValue> |
getEnumerationValues(Class<T> enumClass)
Returns all Enumerations for given enumeration class.
|
<T extends HybrisEnumValue> |
getEnumerationValues(String enumerationCode)
Returns all Enumerations with matching given enumeration code.
|
void |
setEnumerationName(HybrisEnumValue enumValue,
String name)
Changes name for enumeration value (in the current language).
|
void |
setEnumerationName(HybrisEnumValue enumValue,
String name,
Locale locale)
Changes name for enumeration value using the given locale.
|
<T extends HybrisEnumValue> List<T> getEnumerationValues(String enumerationCode)
enumerationCode - the code of the Enumeration type, e.g. ArticleApprovalStatus.HybrisEnumValueIllegalArgumentException - if given parameter is null.UnknownIdentifierException - if given parameter could not be found.<T extends HybrisEnumValue> List<T> getEnumerationValues(Class<T> enumClass)
enumClass - the enumeration class, e.g. ArticleApprovalStatus. This can either be fixed or dynamic enumeration
class.HybrisEnumValueIllegalArgumentException - if given parameter is null.UnknownIdentifierException - if given parameter could not be found.<T extends HybrisEnumValue> T getEnumerationValue(String enumerationCode, String valueCode)
enumerationCode - the code of the Enumeration type, e.g. ArticleApprovalStatus.valueCode - the value code of the Enumeration item, e.g. check, approval, etc...HybrisEnumValue implementationIllegalArgumentException - if given parameters are null.UnknownIdentifierException - if given parameters could not be found.<T extends HybrisEnumValue> T getEnumerationValue(Class<T> enumClass, String valueCode)
enumClass - the enumeration class, e.g. ArticleApprovalStatus. This can either be fixed or dynamic enumeration
class.valueCode - the value code of the Enumeration item, e.g. check, approval, etc...HybrisEnumValue implementationIllegalArgumentException - if given parameters are null.UnknownIdentifierException - if given parameters could not be found.String getEnumerationName(HybrisEnumValue enumValue)
enumValue - the valuevoid setEnumerationName(HybrisEnumValue enumValue, String name)
enumValue - the valuename - the new nameString getEnumerationName(HybrisEnumValue enumValue, Locale locale)
enumValue - the valuelocale - the locale to matchvoid setEnumerationName(HybrisEnumValue enumValue, String name, Locale locale)
enumValue - the valuelocale - the locale to matchname - the new nameCopyright © 2017 SAP SE. All Rights Reserved.