Class ClassificationPropertyAccessor

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

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

      • 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 Feature getFeatureByCode​(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, java.lang.String qualifier)  
      int getOrder()  
      java.lang.Class[] getSpecificTargetClasses()  
      protected boolean isClassificationAttributeCorrect​(java.lang.String qualifier)
      protected void markDirty​(ItemModel target)  
      org.springframework.expression.TypedValue read​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)  
      protected Feature readModifiedFeature​(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, java.lang.String qualifier)  
      void setClassificationService​(ClassificationService classificationService)  
      void setOrder​(int order)  
      protected org.springframework.expression.TypedValue wrapCurrentValue​(java.lang.Object currentValue)  
      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
    • Constructor Detail

      • ClassificationPropertyAccessor

        public ClassificationPropertyAccessor()
    • 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
      • isClassificationAttributeCorrect

        protected boolean isClassificationAttributeCorrect​(java.lang.String qualifier)
        Parameters:
        qualifier -
        Returns:
        true if the qualifier represents a possibly valid classification attribute
      • 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
      • getFeatureByCode

        protected Feature getFeatureByCode​(org.springframework.expression.EvaluationContext evaluationContext,
                                           ProductModel productModel,
                                           java.lang.String qualifier)
      • readModifiedFeature

        protected Feature readModifiedFeature​(org.springframework.expression.EvaluationContext evaluationContext,
                                              ProductModel productModel,
                                              java.lang.String qualifier)
      • wrapCurrentValue

        protected org.springframework.expression.TypedValue wrapCurrentValue​(java.lang.Object currentValue)
      • 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
      • 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
      • markDirty

        protected void markDirty​(ItemModel target)
      • setClassificationService

        public void setClassificationService​(ClassificationService classificationService)