Class ClassificationObjectValueHandler
java.lang.Object
de.hybris.platform.cockpit.services.values.impl.ClassificationObjectValueHandler
- All Implemented Interfaces:
ObjectValueHandler
Responsible for loading and storing of classification values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemModelprotected ClassificationServiceprotected TypeServiceprotected FeatureContainergetFeatureContainer(ItemModel item, ClassAttributeAssignment attributeAssignment) protected Set<LanguageModel>getLanguageModels(Set<String> isoCodes) getLanguages(Set<String> isoCodes) Deprecated.protected Set<ClassAttributePropertyDescriptor>getMatchingDescriptors(ItemModel itemModel, Set<PropertyDescriptor> descriptors) protected SessionServiceprotected TypeServiceprotected Objectprotected ObjectgetValueSimple(Feature feature, boolean multi) voidloadValues(ObjectValueContainer valueContainer, ObjectType type, Object source, Set<PropertyDescriptor> descriptors, Set<String> languageIsoCodes) Loads values of given descriptors and in given languages.protected Map<ClassAttributePropertyDescriptor,Object> readValues(ItemModel item, Set<ClassAttributePropertyDescriptor> matchingProperties, Set<String> languageIsoCodes) voidsetClassificationService(ClassificationService classificationService) voidsetCockpitTypeService(TypeService cockpitTypeService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetI18nService(I18NService i18NService) voidsetModelService(ModelService modelService) voidsetSessionService(SessionService sessionService) voidsetTypeService(TypeService typeService) protected voidprotected voidsetValueSimple(Feature feature, Object value, boolean multiple) voidstoreValues(ObjectValueContainer container) Stores values of the given value container.voidstoreValues(ObjectValueContainer container, boolean forceWrite) Stores values of the given value container.protected ObjectunwrapClassValue(Object value, Feature feature) 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.wrapClassValue(Object value)
-
Field Details
-
classificationService
-
-
Constructor Details
-
ClassificationObjectValueHandler
public ClassificationObjectValueHandler()
-
-
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
-
getLanguages
Deprecated.since 6.3, usegetLanguageModels(Set)instead -
getLanguageModels
-
readValues
protected Map<ClassAttributePropertyDescriptor,Object> readValues(ItemModel item, Set<ClassAttributePropertyDescriptor> matchingProperties, Set<String> languageIsoCodes) -
getMatchingDescriptors
protected Set<ClassAttributePropertyDescriptor> getMatchingDescriptors(ItemModel itemModel, Set<PropertyDescriptor> descriptors) -
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
-
getFeatureContainer
protected FeatureContainer getFeatureContainer(ItemModel item, ClassAttributeAssignment attributeAssignment) -
getValue
-
getValueSimple
-
setValue
-
setValueSimple
-
wrapClassValue
-
unwrapClassValue
-
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
-
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
-
getCockpitTypeService
-
setCockpitTypeService
-
getTypeService
-
setTypeService
-
setModelService
-
getModelService
-
setCommonI18NService
-
getCommonI18NService
-
setI18nService
-
getI18NService
-
getSessionService
-
setSessionService
-
getClassificationService
-
setClassificationService
-
getLanguageModels(Set)instead