/** * @see * graed.indisponibilite.IndisponibiliteManager#deleteIndisponibilite(graed.indisponibilite.Indisponibilite) */ public void deleteUser(UserInterface i) throws RemoteException { try { User u = (User) DataBaseUtil.convertStub(dbm.getSession(), i); dbm.delete(u); } catch (DataBaseException e) { throw new RemoteException(e.getMessage()); } }
/** * @see * graed.indisponibilite.IndisponibiliteManager#updateIndiponibilite(graed.indisponibilite.Indisponibilite) */ public void updateUser(UserInterface i) throws RemoteException { try { User u = (User) DataBaseUtil.convertStub(dbm.getSession(), i); dbm.update(u); } catch (DataBaseException e) { e.printStackTrace(); throw new RemoteException(e.getMessage()); } }