Package org.apache.james.mailbox.maildir.user.model

Examples of org.apache.james.mailbox.maildir.user.model.MaildirSubscription


    /*
     * (non-Javadoc)
     * @see org.apache.james.mailbox.store.StoreSubscriptionManager#createSubscription(org.apache.james.mailbox.MailboxSession, java.lang.String)
     */
    protected Subscription createSubscription(MailboxSession session, String mailbox) {
        return new MaildirSubscription(session.getUser().getUserName(), mailbox);
    }
View Full Code Here


     */
    public List<Subscription> findSubscriptionsForUser(String user) throws SubscriptionException {
        Set<String> subscriptionNames = readSubscriptionsForUser(user);
        ArrayList<Subscription> subscriptions = new ArrayList<Subscription>();
        for (String subscription : subscriptionNames) {
            subscriptions.add(new MaildirSubscription(user, subscription));
        }
        return subscriptions;
    }
View Full Code Here

            subscriptionNames = readSubscriptions(userRoot);
        } catch (IOException e) {
            throw new SubscriptionException(e);
        }
        if (subscriptionNames.contains(mailbox))
            return new MaildirSubscription(user, mailbox);
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.maildir.user.model.MaildirSubscription

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.