Class SkipObjectPropertyPreProcessor
- java.lang.Object
-
- com.atlassian.confluence.importexport.impl.SkipObjectPropertyPreProcessor
-
- All Implemented Interfaces:
ImportedObjectPreProcessor
public class SkipObjectPropertyPreProcessor extends Object implements ImportedObjectPreProcessor
-
-
Constructor Summary
Constructors Constructor Description SkipObjectPropertyPreProcessor(Set<String> skippedFullClassNameAndPropertyNamePairs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
SkipObjectPropertyPreProcessor
public SkipObjectPropertyPreProcessor(Set<String> skippedFullClassNameAndPropertyNamePairs)
- Parameters:
skippedFullClassNameAndPropertyNamePairs
- Set of pairs of full class names and properties to skip, example: Set("com.atlassian.confluence.spaces.SpaceGroup#spaceGroup")
-
-
Method Detail
-
handles
public boolean handles(ImportedObject object)
- 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
public ImportedObject process(ImportedObject object)
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.
-
-