Class SkipObjectWithReferencePreProcessor
java.lang.Object
com.atlassian.confluence.importexport.impl.SkipObjectWithReferencePreProcessor
- All Implemented Interfaces:
ImportedObjectPreProcessor
public class SkipObjectWithReferencePreProcessor
extends Object
implements ImportedObjectPreProcessor
This pre-processor ensures we are not importing objects that reference types we no longer support
An example would be backup files with
BodyContent
referencing a content of
the legacy Mail type- Since:
- 7.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionSkipObjectWithReferencePreProcessor
(Set<String> candidateTypes, Set<String> skippedReferenceTypes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
handles
(ImportedObject object) process
(ImportedObject object) Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped.
-
Constructor Details
-
SkipObjectWithReferencePreProcessor
-
-
Method Details
-
handles
- Specified by:
handles
in interfaceImportedObjectPreProcessor
- Parameters:
object
- The object to be processed- Returns:
true
if this preprocessor should be applied to the object, otherwisefalse
.
-
process
Description copied from interface:ImportedObjectPreProcessor
Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped. This method will not execute unlessImportedObjectPreProcessor.handles(ImportedObject)
returns true- Specified by:
process
in interfaceImportedObjectPreProcessor
- 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.
-