com.atlassian.studio.confluence.importexport
Class ValidateScopeSpaceImportPreProcessor

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

public class ValidateScopeSpaceImportPreProcessor
extends java.lang.Object
implements ImportedObjectPreProcessor

Checks the data we import is in the scope of the space.


Constructor Summary
ValidateScopeSpaceImportPreProcessor(java.lang.String newKey)
           
 
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

ValidateScopeSpaceImportPreProcessor

public ValidateScopeSpaceImportPreProcessor(java.lang.String newKey)
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-2014 Atlassian. All Rights Reserved.