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:
Gavin Cornwell
2009-09-03 21:41:23 +00:00
parent 63ceda3da6
commit a64ff1af7e

View File

@@ -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;
}
}