Examples of dumpFolder()


Examples of org.apache.chemistry.opencmis.util.repository.ObjectGenerator.dumpFolder()

        // Build the tree
        try {
            gen.createFolderHierachy(levels, childrenPerLevel, fRootFolderId);
            // Dump the tree
            gen.dumpFolder(fRootFolderId, "*");
        } catch (Exception e) {
            fail("Could not create folder hierarchy with documents. " + e);
        }
    }

View Full Code Here

Examples of org.apache.chemistry.opencmis.util.repository.ObjectGenerator.dumpFolder()

            fObjSvc.deleteTree(fRepositoryId, rootFolderId, null /* true */, UnfileObject.DELETE, true, null);
        } catch (Exception e) {
            fail("deleteTree failed unexpected. " + e);
        }
        log.info("Dumping folder, should only contain one empty folder under root");
        gen.dumpFolder(fRootFolderId, "*");

        // After that we should be not be able to get the root folder, because
        // it should be deleted
        try {
            fObjSvc.getObject(fRepositoryId, rootFolderId, "*", false, IncludeRelationships.NONE, null, false, false,
View Full Code Here

Examples of org.apache.chemistry.opencmis.util.repository.ObjectGenerator.dumpFolder()

        // Set the type id for all created folders:
        gen.setNumberOfDocumentsToCreatePerFolder(1); // create one document in
        // each folder
        gen.createFolderHierachy(3, 2, rootFolderId);
        gen.setFolderTypeId(InMemoryFolderTypeDefinition.getRootFolderType().getId());
        gen.dumpFolder(fRootFolderId, propertyFilter);
        Holder<String> holder = new Holder<String>();
        String sourceIdToMove = gen.getFolderId(rootFolderId, 2, 1);
        if (!isFolder) {
            sourceIdToMove = gen.getDocumentId(sourceIdToMove, 0);
        }
View Full Code Here

Examples of org.apache.chemistry.opencmis.util.repository.ObjectGenerator.dumpFolder()

        holder.setValue(sourceIdToMove); // "/Folder_1/My Folder 0/My Folder 1");
        String sourceFolderId = getSourceFolder(sourceIdToMove);
        log.info("Id before moveObject: " + holder.getValue());
        fObjSvc.moveObject(fRepositoryId, holder, rootFolderId, sourceFolderId, null);
        log.info("Id after moveObject: " + holder.getValue());
        gen.dumpFolder(fRootFolderId, propertyFilter);

        List<ObjectParentData> result = fNavSvc.getObjectParents(fRepositoryId, holder.getValue(), null, Boolean.FALSE,
                IncludeRelationships.NONE, null, Boolean.FALSE, null);
        // check that new parent is set correctly
        String newParentId = result.get(0).getObject().getId();
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.