com.atlassian.confluence.importexport
Class ChainedImportedObjectPreProcessor

java.lang.Object
  extended by com.atlassian.confluence.importexport.ChainedImportedObjectPreProcessor
All Implemented Interfaces:
ImportedObjectPreProcessor

public class ChainedImportedObjectPreProcessor
extends Object
implements ImportedObjectPreProcessor

A container that runs an ImportedObject through multiple ImportedObjectPreProcessors in sequence.


Constructor Summary
ChainedImportedObjectPreProcessor(List<ImportedObjectPreProcessor> processorList)
           
 
Method Summary
static ChainedImportedObjectPreProcessor emptyList()
           
 boolean handles(ImportedObject object)
           
 ImportedObject process(ImportedObject object)
          Process the object with each of the contained preprocessors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedImportedObjectPreProcessor

public ChainedImportedObjectPreProcessor(List<ImportedObjectPreProcessor> processorList)
Method Detail

emptyList

public static ChainedImportedObjectPreProcessor emptyList()

handles

public boolean handles(ImportedObject object)
Specified by:
handles in interface ImportedObjectPreProcessor
Parameters:
object - The object to be processed
Returns:
true if any of the contained preprocessors should be applied to the object, otherwise false.

process

public ImportedObject process(ImportedObject object)
Process the object with each of the contained preprocessors

Specified by:
process in interface ImportedObjectPreProcessor
Parameters:
object - The object that needs to be processed
Returns:
A new processed object, or null if any of the preprocessors returned null


Copyright © 2003–2015 Atlassian. All rights reserved.