Package org.nuxeo.ecm.core.api

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


        }
        return privateSocialSection;
    }

    protected DocumentModel getPublicSection() throws ClientException {
        DocumentRef pathRef = new PathRef(
                socialWorkspace.getPublicSectionPath());
        if (publicSocialSection == null) {
            publicSocialSection = getSession().getDocument(pathRef);
        }
        return publicSocialSection;
View Full Code Here


            this.contextPath = contextPath;
        }

        @Override
        public void run() throws ClientException {
            DocumentRef docRef = new PathRef(contextPath);
            if (session.exists(docRef)) {
                DocumentModel doc = session.getDocument(docRef);
                documentActivityObject = ActivityHelper.createDocumentActivityObject(doc);
            }
        }
View Full Code Here

    protected Space getOrCreateSpace(CoreSession session,
            Map<String, String> parameters) throws ClientException {
        DocumentModel socialWorkspaceContainer = getSocialWorkspaceService().getSocialWorkspaceContainer(
                session);
        DocumentRef collaborationDashboardSpaceRef = new PathRef(
                socialWorkspaceContainer.getPathAsString(),
                COLLABORATION_DASHBOARD_SPACE_NAME);
        if (session.exists(collaborationDashboardSpaceRef)) {
            DocumentModel collaborationDashboardSpace = session.getDocument(collaborationDashboardSpaceRef);
            return collaborationDashboardSpace.getAdapter(Space.class);
View Full Code Here

        assertNotNull(copy);
        assertTrue(copy.hasFacet(SOCIAL_DOCUMENT_FACET));
        assertFalse(fileOutOfSocialWorkspace.hasFacet(SOCIAL_DOCUMENT_FACET));

        DocumentRef swsRef = socialWorkspace.getDocument().getRef();
        DocumentModel movedFile = session.move(
                fileOutOfSocialWorkspace.getRef(), swsRef, "Moved File");
        session.save();
        movedFile = session.getDocument(movedFile.getRef());
        assertNotNull(movedFile);
View Full Code Here

TOP

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

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.