Class AttachmentContentStatusPreProcessor
- java.lang.Object
-
- com.atlassian.confluence.importexport.impl.AttachmentContentStatusPreProcessor
-
- All Implemented Interfaces:
ImportedObjectPreProcessor
public class AttachmentContentStatusPreProcessor extends Object implements ImportedObjectPreProcessor
Exports of upgraded attachments from Confluence 5.7 and lower may have a blank content status field for Attachment objects. This fixes it.- Since:
- 5.8
-
-
Constructor Summary
Constructors Constructor Description AttachmentContentStatusPreProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandles(ImportedObject object)ImportedObjectprocess(ImportedObject object)Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped.
-
-
-
Method Detail
-
handles
public boolean handles(ImportedObject object)
- Specified by:
handlesin interfaceImportedObjectPreProcessor- Parameters:
object- The object to be processed- Returns:
trueif this preprocessor should be applied to the object, otherwisefalse.
-
process
public ImportedObject process(ImportedObject object)
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.
-
-