类 AccessUrlIfFunction

java.lang.Object
org.beetl.ext.spring.AccessUrlIfFunction
所有已实现的接口:
org.beetl.core.Function, org.springframework.beans.factory.Aware, org.springframework.web.context.ServletContextAware

public class AccessUrlIfFunction extends Object implements org.beetl.core.Function, org.springframework.web.context.ServletContextAware
测试指定URL当前用户是否满足访问权限
urlIf('/system/user_list.html', 'GET')
第一参数表示测试URL, 第二参数表示访问方式(默认GET,建议全大写)
作者:
Chen Rui
  • 构造器详细资料

    • AccessUrlIfFunction

      public AccessUrlIfFunction()
  • 方法详细资料

    • setServletContext

      public void setServletContext(javax.servlet.ServletContext servletContext)
      Servlet Context上下文
      指定者:
      setServletContext 在接口中 org.springframework.web.context.ServletContextAware
    • call

      public Boolean call(Object[] paras, org.beetl.core.Context ctx)
      指定者:
      call 在接口中 org.beetl.core.Function