/* * (non-Javadoc) * * @see * org.openiam.idm.srvc.user.service.UserDataService#updateAddress(org.openiam * .idm.srvc.continfo.dto.Address) */ @Transactional public void updateAddress(Address val) { if (val == null) throw new NullPointerException("val is null"); if (val.getAddressId() == null) throw new NullPointerException("AddressId is null"); if (StringUtils.isEmpty(val.getParentId())) throw new NullPointerException("userId for the address is not defined."); if (val.getParentType() == null) { throw new NullPointerException("parentType for the address is not defined."); } addressDao.update(addressDozerConverter.convertToEntity(val, true)); }
/* * (non-Javadoc) * * @see * org.openiam.idm.srvc.user.service.UserDataService#removeAddress(org.openiam * .idm.srvc.continfo.dto.Address) */ @Transactional public void removeAddress(Address val) { if (val == null) throw new NullPointerException("val is null"); if (val.getAddressId() == null) throw new NullPointerException("AddressId is null"); addressDao.remove(addressDozerConverter.convertToEntity(val, true)); }