Class LocalizedModelPropertyAccessor

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.expression.PropertyAccessor

    public class LocalizedModelPropertyAccessor
    extends java.lang.Object
    implements org.springframework.expression.PropertyAccessor, org.springframework.core.Ordered
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger LOG  
      static java.lang.String USE_SESSION_LANGUAGE_FOR_LOCALIZED  
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canRead​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)  
      boolean canWrite​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)  
      protected java.util.Collection<java.util.Locale> getLocales​(org.springframework.expression.EvaluationContext context)  
      int getOrder()  
      java.lang.Class[] getSpecificTargetClasses()  
      org.springframework.expression.TypedValue read​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)  
      void setCockpitLocaleService​(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService)  
      void setCockpitUserService​(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService)  
      void setModelService​(ModelService modelService)  
      void setOrder​(int order)  
      void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)  
      protected void validateWrite​(java.lang.Object newValue)  
      void write​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier, java.lang.Object newValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
      • USE_SESSION_LANGUAGE_FOR_LOCALIZED

        public static final java.lang.String USE_SESSION_LANGUAGE_FOR_LOCALIZED
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocalizedModelPropertyAccessor

        public LocalizedModelPropertyAccessor()
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • setOrder

        public void setOrder​(int order)
      • getSpecificTargetClasses

        public java.lang.Class[] getSpecificTargetClasses()
        Specified by:
        getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessor
      • canRead

        public boolean canRead​(org.springframework.expression.EvaluationContext evaluationContext,
                               java.lang.Object target,
                               java.lang.String qualifier)
                        throws org.springframework.expression.AccessException
        Specified by:
        canRead in interface org.springframework.expression.PropertyAccessor
        Throws:
        org.springframework.expression.AccessException
      • canWrite

        public boolean canWrite​(org.springframework.expression.EvaluationContext evaluationContext,
                                java.lang.Object target,
                                java.lang.String qualifier)
                         throws org.springframework.expression.AccessException
        Specified by:
        canWrite in interface org.springframework.expression.PropertyAccessor
        Throws:
        org.springframework.expression.AccessException
      • read

        public org.springframework.expression.TypedValue read​(org.springframework.expression.EvaluationContext evaluationContext,
                                                              java.lang.Object target,
                                                              java.lang.String qualifier)
                                                       throws org.springframework.expression.AccessException
        Specified by:
        read in interface org.springframework.expression.PropertyAccessor
        Throws:
        org.springframework.expression.AccessException
      • getLocales

        protected java.util.Collection<java.util.Locale> getLocales​(org.springframework.expression.EvaluationContext context)
      • write

        public void write​(org.springframework.expression.EvaluationContext evaluationContext,
                          java.lang.Object target,
                          java.lang.String qualifier,
                          java.lang.Object newValue)
                   throws org.springframework.expression.AccessException
        Specified by:
        write in interface org.springframework.expression.PropertyAccessor
        Throws:
        org.springframework.expression.AccessException
      • validateWrite

        protected void validateWrite​(java.lang.Object newValue)
      • setTypeFacade

        public void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
      • setCockpitLocaleService

        public void setCockpitLocaleService​(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setCockpitUserService

        public void setCockpitUserService​(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService)