com.atlassian.confluence.importexport
Interface ImportedPluginDataPreProcessor


public interface ImportedPluginDataPreProcessor

Allows imported plugin data to be modified before they are persisted. For example, we may want to change the entity id referenced by a workday task.


Method Summary
 File process(com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider> moduleDescriptor, File source, ImportProcessorSummary summary)
          Takes a source file of plugin data and returns a new, processed plugin data file, or the original file if no processing is required, or null if the plugin data should be skipped.
 

Method Detail

process

File process(com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider> moduleDescriptor,
             File source,
             ImportProcessorSummary summary)
Takes a source file of plugin data and returns a new, processed plugin data file, or the original file if no processing is required, or null if the plugin data should be skipped.

Parameters:
moduleDescriptor - the module descriptor of the plugin module whose plugin data is to be restored
source - The source file of the plugin data that needs to be processed
summary - The summary of the import just completed by Confluence.
Returns:
A new, processed plugin data file, or the original file if no processing is required, or null if the plugin data should not be imported.


Copyright © 2003-2013 Atlassian. All Rights Reserved.