Class ClassificationObjectValueHandler

  • All Implemented Interfaces:
    ObjectValueHandler

    public class ClassificationObjectValueHandler
    extends java.lang.Object
    implements ObjectValueHandler
    Responsible for loading and storing of classification values.
    • Constructor Detail

      • ClassificationObjectValueHandler

        public ClassificationObjectValueHandler()
    • Method Detail

      • loadValues

        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
        Description copied from interface: ObjectValueHandler
        Loads values of given descriptors and in given languages. Only object values this value handler is responsible for are loaded!
        Specified by:
        loadValues in interface ObjectValueHandler
        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
      • getLanguages

        @Deprecated
        protected java.util.Set<Language> getLanguages​(java.util.Set<java.lang.String> isoCodes)
        Deprecated.
        since 6.3, use getLanguageModels(Set) instead
      • getLanguageModels

        protected java.util.Set<LanguageModel> getLanguageModels​(java.util.Set<java.lang.String> isoCodes)
      • getValue

        protected java.lang.Object getValue​(Feature feature,
                                            java.util.Set<java.lang.String> languageIsos,
                                            boolean multi,
                                            boolean localized)
      • getValueSimple

        protected java.lang.Object getValueSimple​(Feature feature,
                                                  boolean multi)
      • setValue

        protected void setValue​(Feature feature,
                                java.lang.Object value,
                                java.lang.String langIso,
                                boolean multiple)
      • setValueSimple

        protected void setValueSimple​(Feature feature,
                                      java.lang.Object value,
                                      boolean multiple)
      • wrapClassValue

        public java.lang.Object wrapClassValue​(java.lang.Object value)
      • unwrapClassValue

        protected java.lang.Object unwrapClassValue​(java.lang.Object value,
                                                    Feature feature)
      • updateValues

        public void updateValues​(ObjectValueContainer container,
                                 java.util.Set<java.lang.String> languageIsoCodes,
                                 java.util.Set<PropertyDescriptor> descriptors)
                          throws ValueHandlerException
        Description copied from interface: ObjectValueHandler
        Updates values of given descriptors and in given languages. Only object values this value handler is responsible for are updated!
        Specified by:
        updateValues in interface ObjectValueHandler
        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
      • updateValues

        public void updateValues​(ObjectValueContainer container,
                                 java.util.Set<java.lang.String> languageIsoCodes)
                          throws ValueHandlerException
        Description copied from interface: ObjectValueHandler
        Updates values of the given value container in given languages. Only object values this value handler is responsible for are updated!
        Specified by:
        updateValues in interface ObjectValueHandler
        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
      • getCockpitTypeService

        protected TypeService getCockpitTypeService()
      • setCockpitTypeService

        public void setCockpitTypeService​(TypeService cockpitTypeService)
      • getTypeService

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setCommonI18NService

        public void setCommonI18NService​(CommonI18NService commonI18NService)
      • setI18nService

        public void setI18nService​(I18NService i18NService)
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • setClassificationService

        public void setClassificationService​(ClassificationService classificationService)