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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateLog(String type, AuthzHandler.UserInfoQuery<?> query, Token token, UserInfo user, Exception e) 创建登录日志handle(AuthzCommand command) protected voidsaveExtra(UserInfo userInfo, AuthzCommand command) 保存额外的信息
-
Constructor Details
-
AuthzCommandHandler
public AuthzCommandHandler()
-
-
Method Details
-
handle
public AuthzResult handle(AuthzCommand command) throws com.sankcrm.erp.common.exception.CoreException - Specified by:
handlein interfacecom.sankcrm.erp.bus.CommandHandler<AuthzResult,AuthzCommand> - Throws:
com.sankcrm.erp.common.exception.CoreException
-
saveExtra
保存额外的信息- 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
-