Examples of InboxManager


Examples of org.apache.lenya.inbox.InboxManager

        super.initParameters();
       
        User user = getSession().getIdentity().getUser();
        setParameter("user", user);
       
        InboxManager inboxManager = null;
        try {
            inboxManager = (InboxManager) this.manager.lookup(InboxManager.ROLE);
            org.apache.lenya.inbox.Inbox inbox = inboxManager.getInbox(user);
            setParameter("inbox", inbox);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        finally {
View Full Code Here

Examples of org.apache.lenya.inbox.InboxManager

    }

    protected org.apache.lenya.inbox.Inbox getInbox() {
        org.apache.lenya.inbox.Inbox inbox = (org.apache.lenya.inbox.Inbox) getParameter(PARAM_INBOX);
        if (inbox == null) {
            InboxManager inboxManager = null;
            try {
                inboxManager = (InboxManager) this.manager.lookup(InboxManager.ROLE);
                inbox = inboxManager.getInbox(getUser());
                setParameter(PARAM_INBOX, inbox);
            } catch (Exception e) {
                throw new RuntimeException(e);
            } finally {
                if (inboxManager != null) {
View Full Code Here

Examples of org.apache.lenya.inbox.InboxManager

* Base class for notification tests.
*/
public abstract class AbstractNotificationTest extends AbstractAccessControlTest {

    protected Inbox getInbox(User user) throws Exception {
        InboxManager inboxManager = null;
        try {
            inboxManager = (InboxManager) getManager().lookup(InboxManager.ROLE);
            return inboxManager.getInbox(user);
        }
        finally {
            if (inboxManager != null) {
                getManager().release(inboxManager);
            }
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.