public class DefaultEnumerationService extends AbstractService implements EnumerationService
EnumerationServiceAbstractService.SerializableDTOtenant| Constructor and Description |
|---|
DefaultEnumerationService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEnumerationName(HybrisEnumValue enumValue)
Provides name for enumeration value (in the current language).
|
java.lang.String |
getEnumerationName(HybrisEnumValue enumValue,
java.util.Locale locale)
Provides name for enumeration value using the given locale.
|
<T extends HybrisEnumValue> |
getEnumerationValue(java.lang.Class<T> enumClass,
java.lang.String valueCode)
Returns the Enumeration with matching given enumeration class and value.
|
<T extends HybrisEnumValue> |
getEnumerationValue(java.lang.String enumerationCode,
java.lang.String valueCode)
Returns the Enumeration with matching given enumeration code and value.
|
<T extends HybrisEnumValue> |
getEnumerationValues(java.lang.Class<T> enumClass)
Returns all Enumerations for given enumeration class.
|
<T extends HybrisEnumValue> |
getEnumerationValues(java.lang.String enumerationCode)
Returns all Enumerations with matching given enumeration code.
|
void |
setEnumerationName(HybrisEnumValue enumValue,
java.lang.String name)
Changes name for enumeration value (in the current language).
|
void |
setEnumerationName(HybrisEnumValue enumValue,
java.lang.String name,
java.util.Locale locale)
Changes name for enumeration value using the given locale.
|
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic <T extends HybrisEnumValue> java.util.List<T> getEnumerationValues(java.lang.String enumerationCode)
getEnumerationValues in interface EnumerationServiceenumerationCode - the code of the Enumeration type, e.g. ArticleApprovalStatus.HybrisEnumValuepublic <T extends HybrisEnumValue> java.util.List<T> getEnumerationValues(java.lang.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(java.lang.String enumerationCode, java.lang.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(java.lang.Class<T> enumClass, java.lang.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 java.lang.String getEnumerationName(HybrisEnumValue enumValue)
getEnumerationName in interface EnumerationServiceenumValue - the valuepublic void setEnumerationName(HybrisEnumValue enumValue, java.lang.String name)
setEnumerationName in interface EnumerationServiceenumValue - the valuename - the new namepublic void setTypeService(TypeService typeService)
public void setModelService(ModelService modelService)
public java.lang.String getEnumerationName(HybrisEnumValue enumValue, java.util.Locale locale)
getEnumerationName in interface EnumerationServiceenumValue - the valuelocale - the locale to matchpublic void setEnumerationName(HybrisEnumValue enumValue, java.lang.String name, java.util.Locale locale)
setEnumerationName in interface EnumerationServiceenumValue - the valuename - the new namelocale - the locale to matchCopyright © 2018 SAP SE. All Rights Reserved.