Package org.jayasoft.woj.portal.data.dao.product

Examples of org.jayasoft.woj.portal.data.dao.product.LicenseDao.find()


  }

    public void uninviteUserFromLicense(long licenseId) throws ServiceException {
        try {
            LicenseDao ldao = DaoFactory.getLicenseDao();
            License l = (License)ldao.find(new Long(licenseId));
            if (l.getInvitedMail()!=null) {
                l.setInvitedMail(null);
                ldao.save(l);
            }
        } catch (DaoException e) {
View Full Code Here


     */
    public void freeLicenses(List licIDs) throws ServiceException {
        LicenseDao ldao = DaoFactory.getLicenseDao();
       
        try {
            List licenses = ldao.find(licIDs);
            for (Iterator it = licenses.iterator(); it.hasNext();) {
                License lic = (License)it.next();
                if (lic.getOwner()!=null) {
                    UserImpl u = (UserImpl)lic.getOwner();
                    u.setLicenseUsed(null);
View Full Code Here

    }

    public void swapLicenses(Long licID1, Long licID2) throws ServiceException {
        LicenseDao ldao = DaoFactory.getLicenseDao();
        try {
            License l1 = (License)ldao.find(licID1);
            License l2 = (License)ldao.find(licID2);
           
            if (l1!=null && l2!=null) {
                if (!(l1.getOwner()==null && l2.getOwner()==null) && !(l1.getOwner()!=null && l2.getOwner()!=null)) {
                    License licToAffect = (l1.getOwner()==null)?l1:l2;
View Full Code Here

    public void swapLicenses(Long licID1, Long licID2) throws ServiceException {
        LicenseDao ldao = DaoFactory.getLicenseDao();
        try {
            License l1 = (License)ldao.find(licID1);
            License l2 = (License)ldao.find(licID2);
           
            if (l1!=null && l2!=null) {
                if (!(l1.getOwner()==null && l2.getOwner()==null) && !(l1.getOwner()!=null && l2.getOwner()!=null)) {
                    License licToAffect = (l1.getOwner()==null)?l1:l2;
                    License licToFree = (l1.getOwner()==null)?l2:l1;
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.