Class WidgetParamObjectValueHandler
java.lang.Object
de.hybris.platform.cockpit.services.values.impl.WidgetParamObjectValueHandler
- All Implemented Interfaces:
ObjectValueHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemModelvoidloadValues(ObjectValueContainer valueContainer, ObjectType type, Object source, Set<PropertyDescriptor> descriptors, Set<String> languageIsoCodes) Loads values of given descriptors and in given languages.voidsetCockpitTypeService(TypeService cockpitTypeService) voidsetModelService(ModelService modelService) voidstoreValues(ObjectValueContainer container) Stores values of the given value container.voidstoreValues(ObjectValueContainer container, boolean forceWrite) Stores values of the given value container.voidupdateValues(ObjectValueContainer container, Set<String> languageIsoCodes) Updates values of the given value container in given languages.voidupdateValues(ObjectValueContainer container, Set<String> languageIsoCodes, Set<PropertyDescriptor> descriptors) Updates values of given descriptors and in given languages.
-
Constructor Details
-
WidgetParamObjectValueHandler
public WidgetParamObjectValueHandler()
-
-
Method Details
-
loadValues
public void loadValues(ObjectValueContainer valueContainer, ObjectType type, Object source, Set<PropertyDescriptor> descriptors, Set<String> languageIsoCodes) throws ValueHandlerException Description copied from interface:ObjectValueHandlerLoads values of given descriptors and in given languages. Only object values this value handler is responsible for are loaded!- Specified by:
loadValuesin interfaceObjectValueHandler- Parameters:
valueContainer- container of all valuestype- type of the objectsource- the object itselfdescriptors- descriptors which should be loadedlanguageIsoCodes- languages in which the localized values should be loaded- Throws:
ValueHandlerException- if something goes wrong during value loading
-
fetchItem
- Throws:
ValueHandlerException
-
storeValues
Description copied from interface:ObjectValueHandlerStores values of the given value container. Only object values this value handler is responsible for are stored!- Specified by:
storeValuesin interfaceObjectValueHandler- Parameters:
container- container of all values- Throws:
ValueHandlerException- something goes wrong during value storing
-
storeValues
public void storeValues(ObjectValueContainer container, boolean forceWrite) throws ValueHandlerException Description copied from interface:ObjectValueHandlerStores values of the given value container. Only object values this value handler is responsible for are stored!- Specified by:
storeValuesin interfaceObjectValueHandler- Parameters:
container- container of all valuesforceWrite- store values even if they are not marked as modified- Throws:
ValueHandlerException- something goes wrong during value storing
-
updateValues
public void updateValues(ObjectValueContainer container, Set<String> languageIsoCodes) throws ValueHandlerException Description copied from interface:ObjectValueHandlerUpdates values of the given value container in given languages. Only object values this value handler is responsible for are updated!- Specified by:
updateValuesin interfaceObjectValueHandler- Parameters:
container- container of all valueslanguageIsoCodes- languages in which the localized values should be loaded- Throws:
ValueHandlerException- if something goes wrong during value loading
-
updateValues
public void updateValues(ObjectValueContainer container, Set<String> languageIsoCodes, Set<PropertyDescriptor> descriptors) throws ValueHandlerException Description copied from interface:ObjectValueHandlerUpdates values of given descriptors and in given languages. Only object values this value handler is responsible for are updated!- Specified by:
updateValuesin interfaceObjectValueHandler- Parameters:
container- container of all valueslanguageIsoCodes- languages in which the localized values should be loadeddescriptors- descriptors which should be updated- Throws:
ValueHandlerException- if something goes wrong during value loading
-
setModelService
- Parameters:
modelService- the modelService to set
-
setCockpitTypeService
- Parameters:
cockpitTypeService- the cockpitTypeService to set
-