Class UpdateCommandHandler
java.lang.Object
com.sankcrm.erp.auth.application.user.info.command.update.UpdateCommandHandler
- All Implemented Interfaces:
com.sankcrm.erp.bus.CommandHandler<UserInfo,UpdateCommand>
@Component("userinfoUpdateCommandHandler")
@Transactional(timeout=60,
rollbackFor=java.lang.Exception.class)
public class UpdateCommandHandler
extends Object
implements com.sankcrm.erp.bus.CommandHandler<UserInfo,UpdateCommand>
处理更新用户信息
- Since:
- 2.1.0
- Author:
- zhsxin
- create time:
- 2023/4/2 20:57
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UserInfoemailLoginUpdate(App app, com.sankcrm.erp.auth.domain.model.app.UsernamePolicy username, UserInfo old, UpdateCommand command) handle(UpdateCommand command) protected UserInfoupdate(App app, UserInfo old, UpdateCommand command) protected UserInfoupdate(UserInfo old, UpdateCommand command)
-
Constructor Details
-
UpdateCommandHandler
public UpdateCommandHandler()
-
-
Method Details
-
handle
- Specified by:
handlein interfacecom.sankcrm.erp.bus.CommandHandler<UserInfo,UpdateCommand> - Throws:
com.sankcrm.erp.common.exception.CoreException
-
update
protected UserInfo update(App app, UserInfo old, UpdateCommand command) throws com.sankcrm.erp.common.exception.CoreException - Throws:
com.sankcrm.erp.common.exception.CoreException
-
emailLoginUpdate
protected UserInfo emailLoginUpdate(App app, com.sankcrm.erp.auth.domain.model.app.UsernamePolicy username, UserInfo old, UpdateCommand command) throws com.sankcrm.erp.common.exception.CoreException - Throws:
com.sankcrm.erp.common.exception.CoreException
-
update
protected UserInfo update(UserInfo old, UpdateCommand command) throws com.sankcrm.erp.common.exception.CoreException - Throws:
com.sankcrm.erp.common.exception.CoreException
-