Package com.apress.progwt.server.domain

Examples of com.apress.progwt.server.domain.MailingListEntry


        mailingListDAO.createEntry(comm);
    }

    public void saveSignedUpUser(String randomkey, User u) {
        // may be null for masterkey overrides of the system
        MailingListEntry entry = getEntryForKey(randomkey);
        if (entry != null) {
            entry.setSignedUpUser(u);
            mailingListDAO.save(entry);
        }
    }
View Full Code Here


            throw new BusinessException("No invites available for user.");
        }

        log.debug("before create entry");

        final MailingListEntry invitation = mailingListDAO.createEntry(
                email, inviter);

        log.debug("subtract entry " + inviter.getInvitations());

        userService.addInvitationsTo(inviter, -1);
View Full Code Here

    @RequestMapping("/secure/extreme/mailinglistaction.html")
    public ModelAndView resendInvite(HttpServletRequest request,
            @RequestParam("entryID")
            long entryID, ModelMap map) throws InfrastructureException {

        MailingListEntry entry = invitationService.getEntryById(entryID);

        invitationService.sendInvite(entry);

        map.addAttribute("message", "Success Re-Sending Invite");
View Full Code Here

public class MailingListDAOHibernateImpl extends HibernateDaoSupport
        implements MailingListDAO {

    public void createEntry(MailingListCommand comm) {
        MailingListEntry e = new MailingListEntry(comm);
        getHibernateTemplate().save(e);
    }
View Full Code Here

    /**
     * NOTE: remember save() return the identifier, saveOrUpdate modifies
     * obj
     */
    public MailingListEntry createEntry(String email, User inviter) {
        MailingListEntry e = new MailingListEntry();
        e.setEmail(email);
        e.setInviter(inviter);
        getHibernateTemplate().saveOrUpdate(e);
        return e;
    }
View Full Code Here

        }

        if (!invitationService.isKeyValid(comm.getRandomkey())) {
            errors.rejectValue("randomkey", "invalid");
        }
        MailingListEntry entry = invitationService.getEntryForKey(comm
                .getRandomkey());
        if (entry != null && entry.getSignedUpUser() != null) {
            errors.rejectValue("randomkey", "invalid.randomkey.exists");
        }

    }
View Full Code Here

TOP

Related Classes of com.apress.progwt.server.domain.MailingListEntry

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.