com.atlassian.studio.confluence.importexport
Class SpaceTypeImportPreProcessor

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

public class SpaceTypeImportPreProcessor
extends AbstractPrimitivePropertyImportPreProcessor


Constructor Summary
SpaceTypeImportPreProcessor()
           
 
Method Summary
protected  java.util.List<java.lang.String> getPropertyNames()
          Provides a list of names of properties that the pre-processor is targeting for processing.
 boolean handles(ImportedObject importedObject)
           
protected  PrimitiveProperty updateProperty(PrimitiveProperty primitiveProperty)
          Creates a new space type primitive property with a value of "global".
 
Methods inherited from class com.atlassian.studio.confluence.importexport.AbstractPrimitivePropertyImportPreProcessor
process, propertiesMatchingNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceTypeImportPreProcessor

public SpaceTypeImportPreProcessor()
Method Detail

getPropertyNames

protected java.util.List<java.lang.String> getPropertyNames()
Description copied from class: AbstractPrimitivePropertyImportPreProcessor
Provides a list of names of properties that the pre-processor is targeting for processing. There should only be one property in the object for each of the names in the returned list.

Specified by:
getPropertyNames in class AbstractPrimitivePropertyImportPreProcessor
Returns:
A list of names that the pre-processor should be targeting

updateProperty

protected PrimitiveProperty updateProperty(PrimitiveProperty primitiveProperty)
Creates a new space type primitive property with a value of "global". This is used to convert a personal space to global space during import so it can be linked to an OnDemand project.

Specified by:
updateProperty in class AbstractPrimitivePropertyImportPreProcessor
Parameters:
primitiveProperty - the property to update
Returns:
A new property with value "global"

handles

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.