Beispiel #1
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.openiam.idm.srvc.user.service.UserDataService#addSupervisor(org.openiam
  * .idm.srvc.user.dto.Supervisor)
  */
 @Transactional
 public Supervisor addSupervisor(Supervisor supervisor) {
   if (supervisor == null) throw new NullPointerException("supervisor is null");
   SupervisorEntity supervisorEntity = supervisorDozerConverter.convertToEntity(supervisor, true);
   this.supervisorDao.add(supervisorEntity);
   return supervisorDozerConverter.convertToDTO(supervisorEntity, true);
 }
Beispiel #2
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.openiam.idm.srvc.user.service.UserDataService#updateSupervisor(org
  * .openiam.idm.srvc.user.dto.Supervisor)
  */
 @Transactional
 public void updateSupervisor(Supervisor supervisor) {
   if (supervisor == null) throw new NullPointerException("supervisor is null");
   this.supervisorDao.update(supervisorDozerConverter.convertToEntity(supervisor, true));
 }