Interface ObjectValueHandler
- All Known Implementing Classes:
ClassificationObjectValueHandler,GenericItemObjectValueHandler,WidgetParamObjectValueHandler,WorkflowGenericItemObjectHandler
public interface ObjectValueHandler
Manages data access for arbitrary objects associated with
object types.-
Method Summary
Modifier and TypeMethodDescriptionvoidloadValues(ObjectValueContainer valueContainer, ObjectType type, Object source, Set<PropertyDescriptor> descriptors, Set<String> languageIsoCodes) Loads values of given descriptors and in given languages.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.
-
Method Details
-
loadValues
void loadValues(ObjectValueContainer valueContainer, ObjectType type, Object source, Set<PropertyDescriptor> descriptors, Set<String> languageIsoCodes) throws ValueHandlerException Loads values of given descriptors and in given languages. Only object values this value handler is responsible for are loaded!- 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
-
updateValues
void updateValues(ObjectValueContainer container, Set<String> languageIsoCodes) throws ValueHandlerException Updates values of the given value container in given languages. Only object values this value handler is responsible for are updated!- 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
void updateValues(ObjectValueContainer container, Set<String> languageIsoCodes, Set<PropertyDescriptor> descriptors) throws ValueHandlerException Updates values of given descriptors and in given languages. Only object values this value handler is responsible for are updated!- 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
-
storeValues
Stores values of the given value container. Only object values this value handler is responsible for are stored!- Parameters:
container- container of all values- Throws:
ValueHandlerException- something goes wrong during value storing
-
storeValues
Stores values of the given value container. Only object values this value handler is responsible for are stored!- Parameters:
container- container of all valuesforceWrite- store values even if they are not marked as modified- Throws:
ValueHandlerException- something goes wrong during value storing
-