LOGGER.info("swapping license used by user:" + u.getLogin() + " from " + licToFree.getId() + " to " + licToAffect.getId());
u.setLicenseUsed(licToAffect);
ServiceFactory.getUserService().update(u);
} else {
throw new ServiceException(RessourceBundleApplicationMessage.warning("woj.page.admin.user.license.error.swap.failed.bad.owners", null));
}
} else {
throw new ServiceException(RessourceBundleApplicationMessage.warning("woj.page.admin.user.license.error.swap.failed", null));
}
} catch (DaoException e) {
throw new ServiceException(RessourceBundleApplicationMessage.error("woj.page.admin.user.license.error.swap.failed", null));
}
}