Examples of JVMMailboxPathLocker


Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

        }

        // Register imap cnd file
        JCRUtils.registerCnd(repository, workspace, user, pass);
        MailboxSessionJCRRepository sessionRepos = new GlobalMailboxSessionJCRRepository(repository, workspace, user, pass);
        JVMMailboxPathLocker locker = new JVMMailboxPathLocker();
        JCRUidProvider uidProvider = new JCRUidProvider(locker, sessionRepos);
        JCRModSeqProvider modSeqProvider= new JCRModSeqProvider(locker, sessionRepos);
        JCRMailboxSessionMapperFactory mf = new JCRMailboxSessionMapperFactory(sessionRepos, uidProvider, modSeqProvider);
        JCRMailboxManager manager = new JCRMailboxManager(mf, null, locker);
        manager.init();
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

public class JCRMailboxManager extends StoreMailboxManager<String> implements JCRImapConstants {

    private final Logger logger = LoggerFactory.getLogger(JCRMailboxManager.class);
   
    public JCRMailboxManager(JCRMailboxSessionMapperFactory mapperFactory, final Authenticator authenticator) {
      this(mapperFactory, authenticator, new JVMMailboxPathLocker());
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

    private final JCRMailboxSessionMapperFactory mapperFactory;
    private final Logger logger = LoggerFactory.getLogger(JCRMailboxManager.class);
   
    public JCRMailboxManager(JCRMailboxSessionMapperFactory mapperFactory, final Authenticator authenticator, final UidProvider<String> uidProvider) {
      this(mapperFactory, authenticator, uidProvider, new JVMMailboxPathLocker());
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

import org.apache.james.mailbox.util.MailboxEventDispatcher;

public class InMemoryMailboxManager extends StoreMailboxManager<Long> {

    public InMemoryMailboxManager(MailboxSessionMapperFactory<Long> mapperFactory, Authenticator authenticator, UidProvider<Long> uidProvider) {
        super(mapperFactory, authenticator, uidProvider, new JVMMailboxPathLocker());
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

        super(mapperFactory, authenticator, uidProvider, locker);
        this.useStreaming = useStreaming;
    }

    public OpenJPAMailboxManager(JPAMailboxSessionMapperFactory mapperFactory, Authenticator authenticator, UidProvider<Long> uidProvider) {
        this(mapperFactory, authenticator, uidProvider, new JVMMailboxPathLocker(), false);
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

public class MaildirMailboxManager extends StoreMailboxManager<Integer> {

    public MaildirMailboxManager(
            MailboxSessionMapperFactory<Integer> mailboxSessionMapperFactory,
            Authenticator authenticator, MaildirStore store) {
        this(mailboxSessionMapperFactory, authenticator, store, new JVMMailboxPathLocker());
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

            feature = AdvancedFeature.None;
        }
    }
   
    public OpenJPAMailboxManager(JPAMailboxSessionMapperFactory mapperFactory, Authenticator authenticator, MailboxACLResolver aclResolver, GroupMembershipResolver groupMembershipResolver) {
        this(mapperFactory, authenticator, new JVMMailboxPathLocker(), false, aclResolver, groupMembershipResolver);
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

        this.maildirLocation = maildirLocation;
        this.locker = locker;
    }
   
    public MaildirStore(String maildirLocation) {
        this(maildirLocation, new JVMMailboxPathLocker());
    }
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

                JPAProperty.class.getName() + ";" +
                JPAUserFlag.class.getName() + ";" +
                JPASubscription.class.getName() + ")");
      
        entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
        JVMMailboxPathLocker locker = new JVMMailboxPathLocker();
        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory, new JPAUidProvider(locker, entityManagerFactory), new JPAModSeqProvider(locker, entityManagerFactory));

        MailboxACLResolver aclResolver = new UnionMailboxACLResolver();
        GroupMembershipResolver groupMembershipResolver = new SimpleGroupMembershipResolver();
View Full Code Here

Examples of org.apache.james.mailbox.store.JVMMailboxPathLocker

                JPAUserFlag.class.getName() + ";" +
                JPASubscription.class.getName() + ")");
        properties.put("openjpa.LockTimeout", locktimeout + "");
      
        entityManagerFactory = OpenJPAPersistence.getEntityManagerFactory(properties);
        JVMMailboxPathLocker locker = new JVMMailboxPathLocker();
        JPAMailboxSessionMapperFactory mf = new JPAMailboxSessionMapperFactory(entityManagerFactory, new JPAUidProvider(locker, entityManagerFactory), new JPAModSeqProvider(locker, entityManagerFactory));

        MailboxACLResolver aclResolver = new UnionMailboxACLResolver();
        GroupMembershipResolver groupMembershipResolver = new SimpleGroupMembershipResolver();
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.