com.atlassian.confluence.importexport
Class DefaultImportContext

java.lang.Object
  extended by com.atlassian.confluence.importexport.DefaultImportContext
All Implemented Interfaces:
ImportContext

public class DefaultImportContext
extends Object
implements ImportContext


Constructor Summary
DefaultImportContext()
           
DefaultImportContext(String workingFile, ConfluenceUser importer)
           
DefaultImportContext(String workingFile, com.atlassian.user.User importer)
          Deprecated. 
DefaultImportContext(URL workingURL, ConfluenceUser importer)
           
DefaultImportContext(URL workingURL, com.atlassian.user.User importer)
          Deprecated. 
 
Method Summary
 ConfluenceUser getCurrentUser()
          Deprecated. Since 5.4. Use getUser().
 String getDefaultSpaceKey()
           
 String getDefaultUsersGroup()
           
 ImportedPluginDataPreProcessor getPluginDataPreProcessor()
           
 List<PostImportTask> getPostImportTasks()
           
 ImportedObjectPostProcessor getPostProcessor()
           
 ImportedObjectPreProcessor getPreProcessor()
           
 com.atlassian.core.util.ProgressMeter getProgressMeter()
           
 String getSpaceKeyOfSpaceImport()
           
 ConfluenceUser getUser()
           
 String getWorkingFile()
           
 URL getWorkingURL()
           
 boolean isDeleteWorkingFile()
           
 boolean isIncrementalImport()
           
 boolean isRebuildIndex()
           
 boolean isRequireUpgrades()
           
 void setDefaultSpaceKey(String defaultSpaceKey)
           
 void setDefaultUsersGroup(String defaultUsersGroup)
           
 void setDeleteWorkingFile(boolean deleteWorkingFile)
           
 void setIncrementalImport(boolean incrementalImport)
           
 void setPluginDataPreProcessor(ImportedPluginDataPreProcessor pluginDataPreProcessor)
           
 void setPostImportTasks(List<PostImportTask> postImportTasks)
           
 void setPostProcessor(ImportedObjectPostProcessor postProcessor)
           
 void setPreProcessor(ImportedObjectPreProcessor preProcessor)
           
 void setProgressMeter(com.atlassian.core.util.ProgressMeter progress)
           
 void setRebuildIndex(boolean rebuildIndex)
           
 void setRequireUpgrades(boolean requireUpgrades)
           
 void setSpaceKeyOfSpaceImport(String spaceKeyOfSpaceImport)
           
 void setWorkingFile(String workingFile)
           
 void setWorkingURL(URL workingURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultImportContext

public DefaultImportContext()

DefaultImportContext

public DefaultImportContext(String workingFile,
                            ConfluenceUser importer)

DefaultImportContext

@Deprecated
public DefaultImportContext(String workingFile,
                                       com.atlassian.user.User importer)
Deprecated. 


DefaultImportContext

public DefaultImportContext(URL workingURL,
                            ConfluenceUser importer)

DefaultImportContext

@Deprecated
public DefaultImportContext(URL workingURL,
                                       com.atlassian.user.User importer)
Deprecated. 

Method Detail

getWorkingFile

public String getWorkingFile()
Specified by:
getWorkingFile in interface ImportContext

getPostProcessor

public ImportedObjectPostProcessor getPostProcessor()
Specified by:
getPostProcessor in interface ImportContext

setPreProcessor

public void setPreProcessor(ImportedObjectPreProcessor preProcessor)

getPreProcessor

public ImportedObjectPreProcessor getPreProcessor()
Specified by:
getPreProcessor in interface ImportContext

setWorkingFile

public void setWorkingFile(String workingFile)

isIncrementalImport

public boolean isIncrementalImport()

setIncrementalImport

public void setIncrementalImport(boolean incrementalImport)

isRequireUpgrades

public boolean isRequireUpgrades()

setRequireUpgrades

public void setRequireUpgrades(boolean requireUpgrades)

getDefaultSpaceKey

public String getDefaultSpaceKey()

setDefaultSpaceKey

public void setDefaultSpaceKey(String defaultSpaceKey)

getDefaultUsersGroup

public String getDefaultUsersGroup()
Specified by:
getDefaultUsersGroup in interface ImportContext

setDefaultUsersGroup

public void setDefaultUsersGroup(String defaultUsersGroup)

getProgressMeter

public com.atlassian.core.util.ProgressMeter getProgressMeter()
Specified by:
getProgressMeter in interface ImportContext

setProgressMeter

public void setProgressMeter(com.atlassian.core.util.ProgressMeter progress)
Specified by:
setProgressMeter in interface ImportContext

isDeleteWorkingFile

public boolean isDeleteWorkingFile()
Specified by:
isDeleteWorkingFile in interface ImportContext

setDeleteWorkingFile

public void setDeleteWorkingFile(boolean deleteWorkingFile)
Specified by:
setDeleteWorkingFile in interface ImportContext

getWorkingURL

public URL getWorkingURL()

setWorkingURL

public void setWorkingURL(URL workingURL)

getUser

public ConfluenceUser getUser()
Specified by:
getUser in interface ImportContext

getCurrentUser

@Deprecated
public ConfluenceUser getCurrentUser()
Deprecated. Since 5.4. Use getUser().

Specified by:
getCurrentUser in interface ImportContext

setRebuildIndex

public void setRebuildIndex(boolean rebuildIndex)
Specified by:
setRebuildIndex in interface ImportContext

isRebuildIndex

public boolean isRebuildIndex()
Specified by:
isRebuildIndex in interface ImportContext

setPostProcessor

public void setPostProcessor(ImportedObjectPostProcessor postProcessor)

getSpaceKeyOfSpaceImport

public String getSpaceKeyOfSpaceImport()
Specified by:
getSpaceKeyOfSpaceImport in interface ImportContext
Returns:
the space key of the import, or null if this is not a space import

getPostImportTasks

public List<PostImportTask> getPostImportTasks()
Specified by:
getPostImportTasks in interface ImportContext
Returns:
the import tasks for this import context, or an empty list if there are none

setPostImportTasks

public void setPostImportTasks(List<PostImportTask> postImportTasks)
Specified by:
setPostImportTasks in interface ImportContext

setSpaceKeyOfSpaceImport

public void setSpaceKeyOfSpaceImport(String spaceKeyOfSpaceImport)

getPluginDataPreProcessor

public ImportedPluginDataPreProcessor getPluginDataPreProcessor()
Specified by:
getPluginDataPreProcessor in interface ImportContext

setPluginDataPreProcessor

public void setPluginDataPreProcessor(ImportedPluginDataPreProcessor pluginDataPreProcessor)


Copyright © 2003–2015 Atlassian. All rights reserved.