Examples of enqueueEvent()


Examples of org.apache.lenya.cms.repository.Session.enqueueEvent()

                recipients);
        NotificationEventDescriptor descr = new NotificationEventDescriptor(message);
        RepositoryEvent event = RepositoryEventFactory.createEvent(getManager(), session,
                getLogger(), descr);

        session.enqueueEvent(event);
       
        Inbox inbox = getInbox(alice);
        cleanUp(inbox, SUBJECT);
       
        assertFalse(containsMessage(inbox, SUBJECT));
View Full Code Here

Examples of org.apache.lenya.cms.repository.Session.enqueueEvent()

        RepositoryEvent event = RepositoryEventFactory.createEvent(getManager(), session,
                getLogger(), descr);
        event.setNodeUri(getFactory().getPublication("test").getArea("authoring").getSite()
                .getNode("/index").getLink("en").getDocument().getRepositoryNode().getSourceURI());

        session.enqueueEvent(event);

        Inbox inbox = getInbox(alice);
        cleanUp(inbox, SUBJECT);

        assertFalse(containsMessage(inbox, SUBJECT));
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.