this.createDataset(manager, supplier, user, user, user.getMainGroup(), company);
}
public void updateDataset(Supplier supplier, JbsUser changeUser) throws EJbsObject {
Supplier existingSupplier = manager.find(Supplier.class, supplier.getId());
if (logger.isDebugEnabled()) {
logger.debug("Letter-Count: " + existingSupplier.getLetters().size());
logger.debug("Deleting letters that no longer exist.");
}
this.deleteOldAddressLetters(manager, supplier, existingSupplier.getLetters());
this.updateDataset(manager, supplier, changeUser);
}