Class ApiProcessingInterceptor

    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • ApiProcessingInterceptor

        public ApiProcessingInterceptor()
    • Method Detail

      • setAuthService

        public void setAuthService​(AuthService authService)
      • getVersion

        public int getVersion()
      • setVersion

        public void setVersion​(int version)
      • getDefinedCheckedKeys

        public String[] getDefinedCheckedKeys()
      • setDefinedCheckedKeys

        public void setDefinedCheckedKeys​(String[] definedCheckedKeys)
      • getUser

        protected User getUser()
        获取User
        Returns:
        user
      • checkApi

        protected void checkApi​(org.aopalliance.intercept.MethodInvocation invocation,
                                User user)
      • checkDevice

        protected void checkDevice​(String[] devices,
                                   User user)
      • checkRole

        protected void checkRole​(String[] roles,
                                 User user)
      • checkVersion

        protected void checkVersion​(ApiVersion apiVersion)
      • compareApiVersion

        protected boolean compareApiVersion​(ApiVersion apiVersion)
        项目当前版本是否大于apiVersion定义的版本
        Parameters:
        apiVersion - apiVersion
      • setupAuth

        protected void setupAuth​(User user,
                                 org.aopalliance.intercept.MethodInvocation invocation,
                                 DataAuthExclude authExclude)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException