Class CreateCommandHandler

java.lang.Object
com.sankcrm.erp.auth.application.user.info.command.create.CreateCommandHandler
All Implemented Interfaces:
com.sankcrm.erp.bus.CommandHandler<UserInfo,CreateCommand>

@Component("userinfoCreateCommandHandler") @Transactional(timeout=60, rollbackFor=java.lang.Exception.class) public class CreateCommandHandler extends Object implements com.sankcrm.erp.bus.CommandHandler<UserInfo,CreateCommand>
处理创建
Since:
2.1.0
Author:
zhsxin
  • Field Details

  • Constructor Details

    • CreateCommandHandler

      public CreateCommandHandler()
  • Method Details

    • handle

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

      protected UserInfo create(App app, CreateCommand command) throws com.sankcrm.erp.common.exception.CoreException
      Throws:
      com.sankcrm.erp.common.exception.CoreException
    • emailLoginCreate

      protected UserInfo emailLoginCreate(App app, com.sankcrm.erp.auth.domain.model.app.UsernamePolicy username, CreateCommand command) throws com.sankcrm.erp.common.exception.CoreException
      Throws:
      com.sankcrm.erp.common.exception.CoreException
    • create

      protected UserInfo create(App app, com.sankcrm.erp.auth.domain.model.app.LoginPolicy loginPolicy, CreateCommand command) throws com.sankcrm.erp.common.exception.CoreException
      Throws:
      com.sankcrm.erp.common.exception.CoreException
    • createRolePolicy

      protected void createRolePolicy(UserInfo user, Map<String,Set<String>> roles)
    • createPolicy

      protected void createPolicy(UserInfo user, Map<String,Set<String>> policies)
      创建策略
      Parameters:
      user - 用户信息
      policies - 策略
      Since:
      2.1.1