Package org.apache.abdera.protocol.server.adapters.jcr

Examples of org.apache.abdera.protocol.server.adapters.jcr.JcrCollectionAdapter


    jcrProvider = new DefaultProvider();

    repository = new TransientRepository();
   
    JcrCollectionAdapter cp = new JcrCollectionAdapter();
    cp.setTitle("My Entries");
    cp.setAuthor("Apache Abdera");
    cp.setCollectionNodePath("entries");        
    cp.setRepository(repository);
    cp.setCredentials(new SimpleCredentials("username", "pass".toCharArray()));
    cp.setHref("feed");
    cp.initialize();
   
    SimpleWorkspaceInfo wkspc = new SimpleWorkspaceInfo();
    wkspc.setTitle("JCR Workspace");
    wkspc.addCollection(cp);
    jcrProvider.addWorkspace(wkspc);
View Full Code Here


        jcrProvider = new DefaultProvider();

        repository = new TransientRepository();

        JcrCollectionAdapter cp = new JcrCollectionAdapter();
        cp.setTitle("My Entries");
        cp.setAuthor("Apache Abdera");
        cp.setCollectionNodePath("entries");
        cp.setRepository(repository);
        cp.setCredentials(new SimpleCredentials("username", "pass".toCharArray()));
        cp.setHref("feed");
        cp.initialize();

        SimpleWorkspaceInfo wkspc = new SimpleWorkspaceInfo();
        wkspc.setTitle("JCR Workspace");
        wkspc.addCollection(cp);
        jcrProvider.addWorkspace(wkspc);
View Full Code Here

    jcrProvider = new DefaultProvider();

    repository = new TransientRepository();
   
    JcrCollectionAdapter cp = new JcrCollectionAdapter();
    cp.setTitle("My Entries");
    cp.setAuthor("Apache Abdera");
    cp.setCollectionNodePath("entries");        
    cp.setRepository(repository);
    cp.setCredentials(new SimpleCredentials("username", "pass".toCharArray()));
    cp.setHref("feed");
    cp.initialize();
   
    SimpleWorkspaceInfo wkspc = new SimpleWorkspaceInfo();
    wkspc.setTitle("JCR Workspace");
    wkspc.addCollection(cp);
    jcrProvider.addWorkspace(wkspc);
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.adapters.jcr.JcrCollectionAdapter

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.