Examples of MailingListEntry


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

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

            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

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

    @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

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

public class MailingListDAOHibernateImpl extends HibernateDaoSupport
        implements MailingListDAO {

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

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

    /**
     * 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

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

        }

        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
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.