public void saveUser(User user) { try { commandExecutor.execute(new SaveUserCmd(user)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The user already exists", ex); } throw ex; } }
public void saveTenant(Tenant tenant) { try { commandExecutor.execute(new SaveTenantCmd(tenant)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The tenant already exists", ex); } throw ex; } }
public void saveUser(User user) { try { commandExecutor.execute(new SaveUserCmd(user)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The user already exists", ex); } throw ex; } }
public void saveGroup(Group group) { try { commandExecutor.execute(new SaveGroupCmd((GroupEntity) group)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The group already exists", ex); } throw ex; } }
public void saveGroup(Group group) { try { commandExecutor.execute(new SaveGroupCmd((GroupEntity) group)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The group already exists", ex); } throw ex; } }
public void saveTenant(Tenant tenant) { try { commandExecutor.execute(new SaveTenantCmd(tenant)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The tenant already exists", ex); } throw ex; } }
public void saveUser(User user) { try { commandExecutor.execute(new SaveUserCmd(user)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The user already exists", ex); } throw ex; } }
public void saveGroup(Group group) { try { commandExecutor.execute(new SaveGroupCmd((GroupEntity) group)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The group already exists", ex); } throw ex; } }
public void saveTenant(Tenant tenant) { try { commandExecutor.execute(new SaveTenantCmd(tenant)); } catch (ProcessEngineException ex) { if (ExceptionUtil.checkConstraintViolationException(ex)) { throw new BadUserRequestException("The tenant already exists", ex); } throw ex; } }