Class AuthzCommandHandler

java.lang.Object
com.sankcrm.erp.auth.application.authz.command.create.AuthzCommandHandler
All Implemented Interfaces:
com.sankcrm.erp.bus.CommandHandler<AuthzResult,AuthzCommand>

@Component("userinfoAuthCommandHandler") @Transactional(timeout=60, rollbackFor=java.lang.Exception.class) public class AuthzCommandHandler extends Object implements com.sankcrm.erp.bus.CommandHandler<AuthzResult,AuthzCommand>
认证处理
Since:
2.1.0
Author:
zhsxin
  • Constructor Details

    • AuthzCommandHandler

      public AuthzCommandHandler()
  • Method Details

    • handle

      public AuthzResult handle(AuthzCommand command) throws com.sankcrm.erp.common.exception.CoreException
      Specified by:
      handle in interface com.sankcrm.erp.bus.CommandHandler<AuthzResult,AuthzCommand>
      Throws:
      com.sankcrm.erp.common.exception.CoreException
    • saveExtra

      protected void saveExtra(UserInfo userInfo, AuthzCommand command)
      保存额外的信息
      Parameters:
      userInfo - 账号
      command - 授权参数
      Since:
      2.3.0
    • createLog

      protected void createLog(String type, AuthzHandler.UserInfoQuery<?> query, Token token, UserInfo user, Exception e)
      创建登录日志
      Parameters:
      token - 令牌
      Since:
      2.2.0