public interface

ImportedObjectPreProcessor

com.atlassian.confluence.importexport.ImportedObjectPreProcessor
Known Indirect Subclasses

Class Overview

Allows imported objects to be modified before they are persisted. For example, we may want to change the spacekey of a space object before it's actually in the system

Summary

Public Methods
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.

Public Methods

public boolean handles (ImportedObject object)

Parameters
object The object to be processed
Returns
  • true if this preprocessor should be applied to the object, otherwise false.

public ImportedObject process (ImportedObject object)

Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped. This method will not execute unless handles(ImportedObject) returns true

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.