com.atlassian.confluence.importexport
Interface ImportedObjectPreProcessor

All Known Implementing Classes:
ChainedImportedObjectPreProcessor, NotNullBandanaRecordPreProcessor

public interface ImportedObjectPreProcessor

Allows imported objects to be modified before they are persisted. For example, we may want to change the spacekey of a space object before it's actually in the system


Method Summary
 boolean handles(ImportedObject object)
           
 ImportedObject process(ImportedObject object)
          Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped.
 

Method Detail

handles

boolean handles(ImportedObject object)
Parameters:
object - The object to be processed
Returns:
true if this preprocessor should be applied to the object, otherwise false.

process

ImportedObject process(ImportedObject object)
Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped. This method will not execute unless handles(ImportedObject) returns true

Parameters:
object - The object that needs to be processed
Returns:
An ImportedObject with the relevant changes, or null if the object should not be imported.


Copyright © 2003-2014 Atlassian. All Rights Reserved.