public class ClassificationObjectValueHandler extends java.lang.Object implements ObjectValueHandler
| Modifier and Type | Field and Description |
|---|---|
protected ClassificationService |
classificationService |
| Constructor and Description |
|---|
ClassificationObjectValueHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected ItemModel |
fetchItem(java.lang.Object source) |
protected ClassificationService |
getClassificationService() |
protected TypeService |
getCockpitTypeService() |
CommonI18NService |
getCommonI18NService() |
protected FeatureContainer |
getFeatureContainer(ItemModel item,
ClassAttributeAssignment attributeAssignment) |
I18NService |
getI18NService() |
protected java.util.Set<LanguageModel> |
getLanguageModels(java.util.Set<java.lang.String> isoCodes) |
protected java.util.Set<Language> |
getLanguages(java.util.Set<java.lang.String> isoCodes)
Deprecated.
since 6.3, use
getLanguageModels(Set) instead |
protected java.util.Set<ClassAttributePropertyDescriptor> |
getMatchingDescriptors(ItemModel itemModel,
java.util.Set<PropertyDescriptor> descriptors) |
ModelService |
getModelService() |
protected SessionService |
getSessionService() |
protected TypeService |
getTypeService() |
protected java.lang.Object |
getValue(Feature feature,
java.util.Set<java.lang.String> languageIsos,
boolean multi,
boolean localized) |
protected java.lang.Object |
getValueSimple(Feature feature,
boolean multi) |
void |
loadValues(ObjectValueContainer valueContainer,
ObjectType type,
java.lang.Object source,
java.util.Set<PropertyDescriptor> descriptors,
java.util.Set<java.lang.String> languageIsoCodes)
Loads values of given descriptors and in given languages.
|
protected java.util.Map<ClassAttributePropertyDescriptor,java.lang.Object> |
readValues(ItemModel item,
java.util.Set<ClassAttributePropertyDescriptor> matchingProperties,
java.util.Set<java.lang.String> languageIsoCodes) |
void |
setClassificationService(ClassificationService classificationService) |
void |
setCockpitTypeService(TypeService cockpitTypeService) |
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setI18nService(I18NService i18NService) |
void |
setModelService(ModelService modelService) |
void |
setSessionService(SessionService sessionService) |
void |
setTypeService(TypeService typeService) |
protected void |
setValue(Feature feature,
java.lang.Object value,
java.lang.String langIso,
boolean multiple) |
protected void |
setValueSimple(Feature feature,
java.lang.Object value,
boolean multiple) |
void |
storeValues(ObjectValueContainer container)
Stores values of the given value container.
|
void |
storeValues(ObjectValueContainer container,
boolean forceWrite)
Stores values of the given value container.
|
protected java.lang.Object |
unwrapClassValue(java.lang.Object value,
Feature feature) |
void |
updateValues(ObjectValueContainer container,
java.util.Set<java.lang.String> languageIsoCodes)
Updates values of the given value container in given languages.
|
void |
updateValues(ObjectValueContainer container,
java.util.Set<java.lang.String> languageIsoCodes,
java.util.Set<PropertyDescriptor> descriptors)
Updates values of given descriptors and in given languages.
|
java.lang.Object |
wrapClassValue(java.lang.Object value) |
protected ClassificationService classificationService
public void loadValues(ObjectValueContainer valueContainer, ObjectType type, java.lang.Object source, java.util.Set<PropertyDescriptor> descriptors, java.util.Set<java.lang.String> languageIsoCodes) throws ValueHandlerException
ObjectValueHandlerloadValues in interface ObjectValueHandlervalueContainer - container of all valuestype - type of the objectsource - the object itselfdescriptors - descriptors which should be loadedlanguageIsoCodes - languages in which the localized values should be loadedValueHandlerException - if something goes wrong during value loading@Deprecated protected java.util.Set<Language> getLanguages(java.util.Set<java.lang.String> isoCodes)
getLanguageModels(Set) insteadprotected java.util.Set<LanguageModel> getLanguageModels(java.util.Set<java.lang.String> isoCodes)
protected java.util.Map<ClassAttributePropertyDescriptor,java.lang.Object> readValues(ItemModel item, java.util.Set<ClassAttributePropertyDescriptor> matchingProperties, java.util.Set<java.lang.String> languageIsoCodes)
protected java.util.Set<ClassAttributePropertyDescriptor> getMatchingDescriptors(ItemModel itemModel, java.util.Set<PropertyDescriptor> descriptors)
protected ItemModel fetchItem(java.lang.Object source) throws ValueHandlerException
ValueHandlerExceptionpublic void storeValues(ObjectValueContainer container) throws ValueHandlerException
ObjectValueHandlerstoreValues in interface ObjectValueHandlercontainer - container of all valuesValueHandlerException - something goes wrong during value storingpublic void storeValues(ObjectValueContainer container, boolean forceWrite) throws ValueHandlerException
ObjectValueHandlerstoreValues in interface ObjectValueHandlercontainer - container of all valuesforceWrite - store values even if they are not marked as modifiedValueHandlerException - something goes wrong during value storingprotected FeatureContainer getFeatureContainer(ItemModel item, ClassAttributeAssignment attributeAssignment)
protected java.lang.Object getValue(Feature feature, java.util.Set<java.lang.String> languageIsos, boolean multi, boolean localized)
protected java.lang.Object getValueSimple(Feature feature, boolean multi)
protected void setValue(Feature feature, java.lang.Object value, java.lang.String langIso, boolean multiple)
protected void setValueSimple(Feature feature, java.lang.Object value, boolean multiple)
public java.lang.Object wrapClassValue(java.lang.Object value)
protected java.lang.Object unwrapClassValue(java.lang.Object value,
Feature feature)
public void updateValues(ObjectValueContainer container, java.util.Set<java.lang.String> languageIsoCodes, java.util.Set<PropertyDescriptor> descriptors) throws ValueHandlerException
ObjectValueHandlerupdateValues in interface ObjectValueHandlercontainer - container of all valueslanguageIsoCodes - languages in which the localized values should be loadeddescriptors - descriptors which should be updatedValueHandlerException - if something goes wrong during value loadingpublic void updateValues(ObjectValueContainer container, java.util.Set<java.lang.String> languageIsoCodes) throws ValueHandlerException
ObjectValueHandlerupdateValues in interface ObjectValueHandlercontainer - container of all valueslanguageIsoCodes - languages in which the localized values should be loadedValueHandlerException - if something goes wrong during value loadingprotected TypeService getCockpitTypeService()
public void setCockpitTypeService(TypeService cockpitTypeService)
protected TypeService getTypeService()
public void setTypeService(TypeService typeService)
public void setModelService(ModelService modelService)
public ModelService getModelService()
public void setCommonI18NService(CommonI18NService commonI18NService)
public CommonI18NService getCommonI18NService()
public void setI18nService(I18NService i18NService)
public I18NService getI18NService()
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
protected ClassificationService getClassificationService()
public void setClassificationService(ClassificationService classificationService)
Copyright © 2018 SAP SE. All Rights Reserved.