Package org.nuxeo.ecm.core.api

Examples of org.nuxeo.ecm.core.api.PathRef


                privateDashboardPathRef, EVERYTHING));
    }

    @Test
    public void testNewsItemsRootRights() throws Exception {
        PathRef newsItemsRootPathRef = new PathRef(
                socialWorkspace.getNewsItemsRootPath());

        assertTrue(session.exists(newsItemsRootPathRef));
        assertNotNull(session.getDocument(newsItemsRootPathRef));
View Full Code Here


                socialWorkspace.getAdministratorsGroupName());
    }

    @Test
    public void testPublicSectionRights() throws Exception {
        PathRef publicSectionPathRef = new PathRef(
                socialWorkspace.getPublicSectionPath());
        assertTrue(session.exists(publicSectionPathRef));
        assertNotNull(session.getDocument(publicSectionPathRef));

        assertFalse(session.hasPermission(nobody, publicSectionPathRef, READ));
View Full Code Here

        socialWorkspaceService.addSocialWorkspaceMembers(sw, "john_doe_group");
    }

    @Test
    public void testSocialWorkspaceContainer() throws ClientException {
        assertTrue(session.exists(new PathRef("/collaboration")));
        DocumentModel container = socialWorkspaceService.getSocialWorkspaceContainer(session);
        assertEquals("Collaboration", container.getTitle());
        assertEquals("/",
                session.getDocument(container.getParentRef()).getPathAsString());
    }
View Full Code Here

    @Before
    public void setup() throws Exception {
        socialWorkspace = createSocialWorkspace("SocialWorkspace for test");
        socialWorkspaceDoc = socialWorkspace.getDocument();

        publicSection = session.getDocument(new PathRef(
                socialWorkspace.getPublicSectionPath()));
        privateSection = session.getDocument(new PathRef(
                socialWorkspace.getPrivateSectionPath()));
    }
View Full Code Here

    @Before
    public void setup() throws Exception {
        socialWorkspace = createSocialWorkspace("Socialworkspace for test");
        socialWorkspaceDoc = socialWorkspace.getDocument();

        publicSection = session.getDocument(new PathRef(
                socialWorkspace.getPublicSectionPath()));
        privateSection = session.getDocument(new PathRef(
                socialWorkspace.getPrivateSectionPath()));
    }
View Full Code Here

TOP

Related Classes of org.nuxeo.ecm.core.api.PathRef

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.