public class

ChainedImportedObjectPreProcessor

extends Object
implements ImportedObjectPreProcessor
java.lang.Object
   ↳ com.atlassian.confluence.importexport.ChainedImportedObjectPreProcessor

Class Overview

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

Summary

Public Constructors
ChainedImportedObjectPreProcessor(List<ImportedObjectPreProcessor> processorList)
Public Methods
static ChainedImportedObjectPreProcessor emptyList()
boolean handles(ImportedObject object)
ImportedObject process(ImportedObject object)
Process the object with each of the contained preprocessors
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.importexport.ImportedObjectPreProcessor

Public Constructors

public ChainedImportedObjectPreProcessor (List<ImportedObjectPreProcessor> processorList)

Public Methods

public static ChainedImportedObjectPreProcessor emptyList ()

public boolean handles (ImportedObject object)

Parameters
object The object to be processed
Returns
  • true if any of the contained preprocessors should be applied to the object, otherwise false.

public ImportedObject process (ImportedObject object)

Process the object with each of the contained preprocessors

Parameters
object The object that needs to be processed
Returns
  • A new processed object, or null if any of the preprocessors returned null