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

Examples of org.jayasoft.woj.portal.data.dao.commercial.FidelityOfferDao


    public void orderGift(User u, Long giftId) throws ServiceException {
        if (u instanceof UserImpl) {
            try {
                UserImpl user = (UserImpl)u;
                UserPointDao upDao = DaoFactory.getUserPointDao();
                FidelityOfferDao foDao = DaoFactory.getFidelityOfferDao();
                FidelityOffer fo = (FidelityOffer)foDao.find(giftId);
                if (fo != null) {
                    UserPoint oldUP = getUserPoint(user);
                    if (oldUP.getPoints() < fo.getNeededPoints()) {
                        throw new ServiceException(RessourceBundleApplicationMessage.error("woj.page.fidelity.offers.not.enough.points", null));
                    }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.portal.data.dao.commercial.FidelityOfferDao

Copyright © 2018 www.massapicom. 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.