com.atlassian.studio.confluence.importexport
Class SilentlyIgnoreDecoratorsSpaceImportPreProcessor

java.lang.Object
  extended by com.atlassian.studio.confluence.importexport.SilentlyIgnoreDecoratorsSpaceImportPreProcessor
All Implemented Interfaces:
ImportedObjectPreProcessor

public class SilentlyIgnoreDecoratorsSpaceImportPreProcessor
extends Object
implements ImportedObjectPreProcessor

Only system administrators can create decorators, so this operation is not allowed using the Space Importer. This preprocessor will drop them and log a message.

Space Importer is an OnDemand feature only (both Standalone and OnDemand).


Constructor Summary
SilentlyIgnoreDecoratorsSpaceImportPreProcessor()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilentlyIgnoreDecoratorsSpaceImportPreProcessor

public SilentlyIgnoreDecoratorsSpaceImportPreProcessor()
Method Detail

handles

public boolean handles(ImportedObject object)
Specified by:
handles in interface ImportedObjectPreProcessor
Parameters:
object - The object to be processed
Returns:
true if this preprocessor should be applied to the object, otherwise false.

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 unless ImportedObjectPreProcessor.handles(ImportedObject) returns true

Specified by:
process in interface ImportedObjectPreProcessor
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.


Copyright © 2003–2015 Atlassian. All rights reserved.