Class CaptchaPolicyQueryHandler
java.lang.Object
com.sankcrm.erp.auth.application.app.captcha.CaptchaPolicyQueryHandler
- All Implemented Interfaces:
com.sankcrm.erp.bus.QueryHandler<CaptchaPolicyResponse,CaptchaPolicyQuery>
@Component
@Transactional(readOnly=true,
timeout=60)
public class CaptchaPolicyQueryHandler
extends Object
implements com.sankcrm.erp.bus.QueryHandler<CaptchaPolicyResponse,CaptchaPolicyQuery>
查询处理器:先完成租户和 Casbin GET 授权,再返回验证码策略与版本。
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CaptchaPolicyQueryHandler
public CaptchaPolicyQueryHandler()
-
-
Method Details
-
handle
public CaptchaPolicyResponse handle(CaptchaPolicyQuery query) throws com.sankcrm.erp.common.exception.CoreException 执行已授权策略查询。- Specified by:
handlein interfacecom.sankcrm.erp.bus.QueryHandler<CaptchaPolicyResponse,CaptchaPolicyQuery> - Parameters:
query- 目标应用和 HTTP 请求- Returns:
- 策略快照;未配置策略时返回关闭状态
- Throws:
com.sankcrm.erp.common.exception.CoreException- 未授权或读取失败时抛出
-