Class DefaultLabelService
java.lang.Object
de.hybris.platform.cockpit.services.label.impl.DefaultLabelService
- All Implemented Interfaces:
LabelService
Default implementation of
LabelService-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation forDefaultLabelService.LanguageProviderthat returns the global data language from the currentUISessionstatic interfaceInterface for getting a language iso code dynamicallystatic classImplementation forDefaultLabelService.LanguageProviderthat returns the session language from the currentUISessionstatic classImplementation forDefaultLabelService.LanguageProviderthat returns a fixed value specified in the constructor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultLabelService.LanguageProvidergetObjectDescription(TypedObject object) Gets the object description for typed object.getObjectIconPath(TypedObject object) Gets the object icon path for typed object.getObjectTextLabel(TypedObject object) Gets the object text label for typed object.protected SessionServicevoidsetCockpitTypeService(TypeService typeService) voidsetLanguageProvider(DefaultLabelService.LanguageProvider languageProvider) voidsetSessionService(SessionService sessionService) voidsetUiConfigurationService(UIConfigurationService uiConfigurationService)
-
Constructor Details
-
DefaultLabelService
public DefaultLabelService()
-
-
Method Details
-
getObjectTextLabel
- Specified by:
getObjectTextLabelin interfaceLabelService- Returns:
- label string to display for a given TypeObject
-
getObjectTextLabelForTypedObject
Gets the object text label for typed object.- Specified by:
getObjectTextLabelForTypedObjectin interfaceLabelService- Parameters:
object- the object- Returns:
- the object text label for typed object
-
getObjectDescription
- Specified by:
getObjectDescriptionin interfaceLabelService- Returns:
- description to display for a given TypeObject
-
getObjectDescriptionForTypedObject
Gets the object description for typed object.- Specified by:
getObjectDescriptionForTypedObjectin interfaceLabelService- Parameters:
object- the object- Returns:
- the object description for typed object
-
getObjectIconPath
- Specified by:
getObjectIconPathin interfaceLabelService- Returns:
- path to picture to display for a given TypeObject, can return null when picture is not defined
-
getObjectIconPathForTypedObject
Gets the object icon path for typed object.- Specified by:
getObjectIconPathForTypedObjectin interfaceLabelService- Parameters:
object- the object- Returns:
- the object icon path for typed object
-
setUiConfigurationService
-
setCockpitTypeService
-
getSessionService
-
setSessionService
-
setLanguageProvider
-
getLanguageProvider
-