Package sk.vrto.web.events

Examples of sk.vrto.web.events.ContactInsertedEvent


     * @param email Contact's email
     */
    public void createContact(String name, String email) {
        Contact contact = new Contact(name, email, user);
        contactRepository.insert(contact);
        eventBus.post(new ContactInsertedEvent(contact));
    }
View Full Code Here


     * @param content Textual content of the email
     */
    public void sendMail(String recipient, String title, String content) {
        ContactCreation creation = contactRepository.getOrCreate(recipient, user);
        if (creation.isFreshlyCreated()) {
            eventBus.post(new ContactInsertedEvent(creation.getContact()));
        }
        Email email = new Email(creation.getContact(), title, content);
        emailService.send(user.getEmailAccount(), email);
    }
View Full Code Here

TOP

Related Classes of sk.vrto.web.events.ContactInsertedEvent

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.