Beispiel #1
0
  /*
   * (non-Javadoc)
   *
   * @see
   * org.openiam.idm.srvc.user.service.UserDataService#removeAttribute(org
   * .openiam.idm.srvc.user.dto.UserAttribute)
   */
  @Transactional
  public void removeAttribute(UserAttribute attr) {
    if (attr == null) {
      throw new NullPointerException("attr is null");
    }
    if (StringUtils.isEmpty(attr.getId())) {
      throw new NullPointerException("attrId is null");
    }
    UserEntity userEntity = userDao.findById(attr.getUserId());
    userAttributeDao.remove(userAttributeDozerConverter.convertToEntity(attr, true));

    // this.userMsgProducer.sendMessage(attr.getUserId(),"DELETE");

  }