Examples of affectLicense()


Examples of org.jayasoft.woj.server.data.LicenseDao.affectLicense()

    public void affectLicense(Long userId, Long licId) throws LicenseException {
        LicenseDao lDao = WOJServer.getInstance().getDataService().getLicenseDao();
        try {
          if(getAvailableLicenses(licId) > 0) {
            lDao.affectLicense(userId, licId);  
          } else {
            throw new LicenseException("No more free license for:"+get(licId));
          }
        } catch (DataAccessException dae) {
            LOGGER.warn("db error while affecting license:" + licId + " to user: " + userId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.