public class DefaultEnumerationService extends AbstractService implements EnumerationService
EnumerationServiceAbstractService.SerializableDTOtenant| Constructor and Description |
|---|
DefaultEnumerationService() |
| 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.
|
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic <T extends HybrisEnumValue> List<T> getEnumerationValues(String enumerationCode)
getEnumerationValues in interface EnumerationServiceenumerationCode - the code of the Enumeration type, e.g. ArticleApprovalStatus.HybrisEnumValuepublic <T extends HybrisEnumValue> List<T> getEnumerationValues(Class<T> enumClass)
EnumerationServicegetEnumerationValues in interface EnumerationServiceenumClass - the enumeration class, e.g. ArticleApprovalStatus. This can either be fixed or dynamic enumeration
class.HybrisEnumValuepublic <T extends HybrisEnumValue> T getEnumerationValue(String enumerationCode, String valueCode)
getEnumerationValue in interface EnumerationServiceenumerationCode - the code of the Enumeration type, e.g. ArticleApprovalStatus.valueCode - the value code of the Enumeration item, e.g. check, approval, etc...HybrisEnumValue implementationpublic <T extends HybrisEnumValue> T getEnumerationValue(Class<T> enumClass, String valueCode)
EnumerationServicegetEnumerationValue in interface EnumerationServiceenumClass - 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 implementationpublic String getEnumerationName(HybrisEnumValue enumValue)
getEnumerationName in interface EnumerationServiceenumValue - the valuepublic void setEnumerationName(HybrisEnumValue enumValue, String name)
setEnumerationName in interface EnumerationServiceenumValue - the valuename - the new namepublic void setTypeService(TypeService typeService)
public void setModelService(ModelService modelService)
public String getEnumerationName(HybrisEnumValue enumValue, Locale locale)
getEnumerationName in interface EnumerationServiceenumValue - the valuelocale - the locale to matchpublic void setEnumerationName(HybrisEnumValue enumValue, String name, Locale locale)
setEnumerationName in interface EnumerationServiceenumValue - the valuename - the new namelocale - the locale to matchCopyright © 2017 SAP SE. All Rights Reserved.