mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Exported ACP files are now importable (thumbnail, disposition lifecycle and declared record aspects are no longer included for exported nodes)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16084 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -214,10 +214,7 @@ public class StreamArchive extends StreamContent
|
||||
dataFile, contentDir, this.mimetypeService);
|
||||
|
||||
// setup parameters for export
|
||||
ExporterCrawlerParameters params = new ExporterCrawlerParameters();
|
||||
params.setCrawlSelf(true);
|
||||
params.setCrawlChildNodes(true);
|
||||
params.setCrawlAssociations(false);
|
||||
ExporterCrawlerParameters params = setupCrawlerParameters();
|
||||
params.setExportFrom(new Location(nodeRefs));
|
||||
|
||||
// perform the actual export
|
||||
@@ -234,4 +231,23 @@ public class StreamArchive extends StreamContent
|
||||
"Failed to create archive", fnfe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and sets up a ExporterCrawlerParameters object to
|
||||
* use to create the archive, subclasses can override this
|
||||
* method to change the output of the generated archive.
|
||||
* <p>
|
||||
* NOTE: The location and includeContent flag will be setup
|
||||
* after this method is called.
|
||||
*
|
||||
* @return ExporterCrawlerParameters object
|
||||
*/
|
||||
protected ExporterCrawlerParameters setupCrawlerParameters()
|
||||
{
|
||||
ExporterCrawlerParameters params = new ExporterCrawlerParameters();
|
||||
params.setCrawlSelf(true);
|
||||
params.setCrawlChildNodes(true);
|
||||
params.setCrawlAssociations(false);
|
||||
return params;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user