Class JaloPropertyNotVisibleInModelAccessor

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

    public class JaloPropertyNotVisibleInModelAccessor
    extends java.lang.Object
    implements org.springframework.expression.PropertyAccessor, org.springframework.core.Ordered
    Property accessor for jalo attributes (attributes with model generate="false")
    • 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 currentObject, java.lang.String attribute)  
      boolean canWrite​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object object, java.lang.String qualifier)  
      protected java.lang.Object getModelFromSource​(java.lang.Object object)  
      int getOrder()  
      java.lang.Class[] getSpecificTargetClasses()  
      java.util.Map<java.lang.String,​java.util.Set<java.lang.Class>> getSupportedJaloAttributes()  
      protected boolean hasReadPermission​(java.lang.Object object, java.lang.String attributeName)  
      protected boolean hasWritePermission​(java.lang.Object object, java.lang.String attributeName)  
      protected boolean isAttributeWritable​(java.lang.Object object, java.lang.String qualifier)  
      protected boolean isSupportedAttribute​(java.lang.Object currentObject, java.lang.String attribute)  
      org.springframework.expression.TypedValue read​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String attributeName)  
      void setModelService​(ModelService modelService)  
      void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)  
      void setOrder​(int order)  
      void setPermissionFacade​(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)  
      void setSupportedJaloAttributes​(java.util.Map<java.lang.String,​java.util.Set<java.lang.Class>> supportedJaloAttributes)
      Map which represents which attributes should be read/write using JaloPropertyNotVisibleInModelAccessor.
      void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)  
      void write​(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String attributeName, java.lang.Object attributeValue)  
      • Methods inherited from class java.lang.Object

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

      • JaloPropertyNotVisibleInModelAccessor

        public JaloPropertyNotVisibleInModelAccessor()
    • Method Detail

      • getOrder

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

        public void setOrder​(int order)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setTypeFacade

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

        public void setPermissionFacade​(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)
      • setObjectFacade

        public void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)
      • getSupportedJaloAttributes

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.Class>> getSupportedJaloAttributes()
      • setSupportedJaloAttributes

        public void setSupportedJaloAttributes​(java.util.Map<java.lang.String,​java.util.Set<java.lang.Class>> supportedJaloAttributes)
        Map which represents which attributes should be read/write using JaloPropertyNotVisibleInModelAccessor. Key of the map is attribute name, and values are set of classes where this attribute exists.
        Parameters:
        supportedJaloAttributes -
      • 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 currentObject,
                               java.lang.String attribute)
                        throws org.springframework.expression.AccessException
        Specified by:
        canRead in interface org.springframework.expression.PropertyAccessor
        Throws:
        org.springframework.expression.AccessException
      • isSupportedAttribute

        protected boolean isSupportedAttribute​(java.lang.Object currentObject,
                                               java.lang.String attribute)
      • read

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

        protected java.lang.Object getModelFromSource​(java.lang.Object object)
      • canWrite

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

        protected boolean isAttributeWritable​(java.lang.Object object,
                                              java.lang.String qualifier)
      • hasReadPermission

        protected boolean hasReadPermission​(java.lang.Object object,
                                            java.lang.String attributeName)
      • hasWritePermission

        protected boolean hasWritePermission​(java.lang.Object object,
                                             java.lang.String attributeName)
      • write

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