Class SkipObjectPropertyPreProcessor
java.lang.Object
com.atlassian.confluence.importexport.impl.SkipObjectPropertyPreProcessor
- All Implemented Interfaces:
ImportedObjectPreProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionSkipObjectPropertyPreProcessor(Set<String> skippedFullClassNameAndPropertyNamePairs) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandles(ImportedObject object) process(ImportedObject object) Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped.
-
Constructor Details
-
SkipObjectPropertyPreProcessor
- Parameters:
skippedFullClassNameAndPropertyNamePairs- Set of pairs of full class names and properties to skip, example: Set("com.atlassian.confluence.spaces.SpaceGroup#spaceGroup")
-
-
Method Details
-
handles
- Specified by:
handlesin interfaceImportedObjectPreProcessor- Parameters:
object- The object to be processed- Returns:
trueif this preprocessor should be applied to the object, otherwisefalse.
-
process
Description copied from interface:ImportedObjectPreProcessorTakes 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:
processin 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.
-