Examples of IdRef


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

            DocumentModel registrationDoc) throws ClientException {
        String docId = (String) registrationDoc.getPropertyValue(DOCUMENT_ID_FIELD);
        if (StringUtils.isBlank(docId)) {
            throw new ClientException("SocialWorkspace id is missing");
        }
        SocialWorkspace sw = toSocialWorkspace(session.getDocument(new IdRef(
                docId)));
        if (sw == null) {
            throw new ClientException(
                    "Document passed is not a Social Workspace");
        }
View Full Code Here

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

        CoreSession session = socialWorkspace.getDocument().getCoreSession();
        try {
            new UnrestrictedSessionRunner(session) {
                @Override
                public void run() throws ClientException {
                    SocialWorkspace unrestrictedSocialWorkspace = toSocialWorkspace(session.getDocument(new IdRef(
                            socialWorkspace.getId())));
                    initializeSocialWorkspaceRights(unrestrictedSocialWorkspace);
                    initializeNewsItemsRootRights(unrestrictedSocialWorkspace);
                    if (unrestrictedSocialWorkspace.isPublic()) {
                        makeSocialWorkspacePublic(unrestrictedSocialWorkspace);
View Full Code Here

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

        DocumentModel copy = session.copy(fileOutOfSocialWorkspace.getRef(),
                socialWorkspace.getDocument().getRef(),
                "Copy of File out of Social Workspace");
        String copyId = copy.getId();
        session.save();
        copy = session.getDocument(new IdRef(copyId));

        assertNotNull(copy);
        assertTrue(copy.hasFacet(SOCIAL_DOCUMENT_FACET));
        assertFalse(fileOutOfSocialWorkspace.hasFacet(SOCIAL_DOCUMENT_FACET));
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.