cancel
Showing results for 
Search instead for 
Did you mean: 

how to export spaces(include its subspace) as tree structure

andyzhuangyy
Champ in-the-making
Champ in-the-making
how to export spaces(include its subspace) the same structure as it shows in the system .

The default 'export' is excuted as you do:
1. get into a space which you have permission to CURD.
2.more actions-view details-export
3.fill in the blanks,choose the destination, ok.

the space you just select has been exported.

but the format is the .acp. Although it is a zip file, the content in it is performed as content1.*,content2.*…

And now I want to export the spaces as its original structure, the "folder-directory".

how to modify the java source code ?

I think there should be an option or an argument to influence this process.

Thanks!!!
                          Andy
1 REPLY 1

andyzhuangyy
Champ in-the-making
Champ in-the-making
ExportActionExecuter.java

 ACPExportPackageHandler zipHandler = new ACPExportPackageHandler(new FileOutputStream(zipFile), 
                 dataFile, contentDir, mimetypeService);

               /************/
                zipHandler.setNodeService(nodeService);
                zipHandler.setExportAsFolders(true);
                /***********/
            ExporterCrawlerParameters params = new ExporterCrawlerParameters();
            boolean includeChildren = true;

insert the code between /*****************/
it will be ok!!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.