Class RestrictedReadEvaluationContext

  • All Implemented Interfaces:
    org.springframework.expression.EvaluationContext

    public class RestrictedReadEvaluationContext
    extends java.lang.Object
    implements org.springframework.expression.EvaluationContext
    EvaluationContext wrapper, that checks current user permissions during expression evaluation. Each PropertyAccessor is wrapped with RestrictedReadPropertyAccessor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.expression.BeanResolver getBeanResolver()  
      java.util.List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()  
      java.util.List<org.springframework.expression.MethodResolver> getMethodResolvers()  
      org.springframework.expression.OperatorOverloader getOperatorOverloader()  
      java.util.List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()  
      org.springframework.expression.TypedValue getRootObject()  
      org.springframework.expression.TypeComparator getTypeComparator()  
      org.springframework.expression.TypeConverter getTypeConverter()  
      org.springframework.expression.TypeLocator getTypeLocator()  
      java.lang.Object lookupVariable​(java.lang.String variable)  
      void setVariable​(java.lang.String key, java.lang.Object value)  
      protected org.springframework.expression.PropertyAccessor wrapAccesor​(org.springframework.expression.PropertyAccessor accessor)  
      • Methods inherited from class java.lang.Object

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

      • RestrictedReadEvaluationContext

        public RestrictedReadEvaluationContext​(org.springframework.expression.EvaluationContext context,
                                               PermissionFacade permissionFacade)
    • Method Detail

      • getRootObject

        public org.springframework.expression.TypedValue getRootObject()
        Specified by:
        getRootObject in interface org.springframework.expression.EvaluationContext
      • getConstructorResolvers

        public java.util.List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()
        Specified by:
        getConstructorResolvers in interface org.springframework.expression.EvaluationContext
      • getMethodResolvers

        public java.util.List<org.springframework.expression.MethodResolver> getMethodResolvers()
        Specified by:
        getMethodResolvers in interface org.springframework.expression.EvaluationContext
      • wrapAccesor

        protected org.springframework.expression.PropertyAccessor wrapAccesor​(org.springframework.expression.PropertyAccessor accessor)
      • getPropertyAccessors

        public java.util.List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
        Specified by:
        getPropertyAccessors in interface org.springframework.expression.EvaluationContext
      • getTypeLocator

        public org.springframework.expression.TypeLocator getTypeLocator()
        Specified by:
        getTypeLocator in interface org.springframework.expression.EvaluationContext
      • getTypeConverter

        public org.springframework.expression.TypeConverter getTypeConverter()
        Specified by:
        getTypeConverter in interface org.springframework.expression.EvaluationContext
      • getTypeComparator

        public org.springframework.expression.TypeComparator getTypeComparator()
        Specified by:
        getTypeComparator in interface org.springframework.expression.EvaluationContext
      • getOperatorOverloader

        public org.springframework.expression.OperatorOverloader getOperatorOverloader()
        Specified by:
        getOperatorOverloader in interface org.springframework.expression.EvaluationContext
      • getBeanResolver

        public org.springframework.expression.BeanResolver getBeanResolver()
        Specified by:
        getBeanResolver in interface org.springframework.expression.EvaluationContext
      • setVariable

        public void setVariable​(java.lang.String key,
                                java.lang.Object value)
        Specified by:
        setVariable in interface org.springframework.expression.EvaluationContext
      • lookupVariable

        public java.lang.Object lookupVariable​(java.lang.String variable)
        Specified by:
        lookupVariable in interface org.springframework.expression.EvaluationContext