Interface ObjectValueHandler

All Known Implementing Classes:
ClassificationObjectValueHandler, GenericItemObjectValueHandler, WidgetParamObjectValueHandler, WorkflowGenericItemObjectHandler

public interface ObjectValueHandler
Manages data access for arbitrary objects associated with object types.
  • 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 values
      type - type of the object
      source - the object itself
      descriptors - descriptors which should be loaded
      languageIsoCodes - 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 values
      languageIsoCodes - 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 values
      languageIsoCodes - languages in which the localized values should be loaded
      descriptors - descriptors which should be updated
      Throws:
      ValueHandlerException - if something goes wrong during value loading
    • storeValues

      void storeValues(ObjectValueContainer container) throws ValueHandlerException
      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

      void storeValues(ObjectValueContainer container, boolean forceWrite) throws ValueHandlerException
      Stores values of the given value container. Only object values this value handler is responsible for are stored!
      Parameters:
      container - container of all values
      forceWrite - store values even if they are not marked as modified
      Throws:
      ValueHandlerException - something goes wrong during value storing