/** * @see * org.esupportail.pstagedata.domain.ContactDomainService#addContact(org.esupportail.pstagedata.domain.dto.ContactDTO) */ public int addContact(ContactDTO c) throws DataAddException, WebServiceDataBaseException { int tmp = 0; try { tmp = this.contactDaoService.addContact(UtilsDTO.getContactFromDTO(c)); } catch (DataAddDaoException e) { throw new DataAddException(e.getMessage(), e.getCause()); } catch (DataBaseDaoException e) { throw new WebServiceDataBaseException(e.getMessage(), e.getCause()); } return tmp; }
/** @see org.esupportail.pstagedata.domain.ContactDomainService#deleteContactFromIdService(int) */ public boolean deleteContactFromIdService(int idService) throws DataDeleteException, WebServiceDataBaseException { boolean b = false; try { b = this.contactDaoService.deleteContactFromIdService(idService); } catch (DataDeleteDaoException e) { throw new DataDeleteException(e.getMessage()); } catch (DataBaseDaoException e) { throw new WebServiceDataBaseException(e.getMessage(), e.getCause()); } return b; }
/** * @see org.esupportail.pstagedata.domain.ContactDomainService#updateContactDerniereConnexion(int, * java.util.Date) */ public boolean updateContactDerniereConnexion(int idContact, Date avantDerniereConnexion) throws DataUpdateException, WebServiceDataBaseException { boolean b = false; try { b = this.contactDaoService.updateContactDerniereConnexion(idContact, avantDerniereConnexion); } catch (DataUpdateDaoException e) { throw new DataUpdateException(e.getMessage()); } catch (DataBaseDaoException e) { throw new WebServiceDataBaseException(e.getMessage(), e.getCause()); } return b; }
/** * @see org.esupportail.pstagedata.domain.ContactDomainService#updateContactInfosAJour(int, * java.lang.String) */ public boolean updateContactInfosAJour(int idContact, String loginInfosAJour) throws DataUpdateException, WebServiceDataBaseException { boolean b = false; try { b = this.contactDaoService.updateContactInfosAJour(idContact, loginInfosAJour); } catch (DataUpdateDaoException e) { throw new DataUpdateException(e.getMessage()); } catch (DataBaseDaoException e) { throw new WebServiceDataBaseException(e.getMessage(), e.getCause()); } return b; }
/** * @see * org.esupportail.pstagedata.domain.ContactDomainService#updateCompteContact(org.esupportail.pstagedata.domain.dto.ContactDTO) */ public boolean updateCompteContact(ContactDTO c) throws DataUpdateException, WebServiceDataBaseException { boolean b = false; try { b = this.contactDaoService.updateCompteContact(UtilsDTO.getContactFromDTO(c)); } catch (DataUpdateDaoException e) { throw new DataUpdateException(e.getMessage()); } catch (DataBaseDaoException e) { throw new WebServiceDataBaseException(e.getMessage(), e.getCause()); } return b; }