Class AbstractImportAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.importexport.actions.AbstractBackupRestoreAction
-
- com.atlassian.confluence.importexport.actions.AbstractImportAction
-
- All Implemented Interfaces:
WebInterface
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
AbstractFileRestoreAction
@Deprecated public abstract class AbstractImportAction extends AbstractBackupRestoreAction
Deprecated.since 7.17.0. Will be removed in the future withImportExportManager
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESTORE_DIR
Deprecated.-
Fields inherited from class com.atlassian.confluence.importexport.actions.AbstractBackupRestoreAction
confluenceHome, zduManager
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description AbstractImportAction()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract DefaultImportContext
createImportContext(ExportDescriptor exportDescriptor)
Deprecated.protected com.atlassian.core.task.longrunning.LongRunningTask
createImportTask(DefaultImportContext context)
Deprecated.String
execute()
Deprecated.protected IndexManager
getIndexManager()
Deprecated.String
getLocalFileName()
Deprecated.protected abstract File
getRestoreFile()
Deprecated.protected File
getRestoreFileFromFileSystem()
Deprecated.protected File
getRestoreFileFromUpload()
Deprecated.retrieves restore file from uploadcom.atlassian.core.task.longrunning.LongRunningTask
getTask()
Deprecated.String
getTaskId()
Deprecated.boolean
isBuildIndex()
Deprecated.protected boolean
isImportAllowed(ExportDescriptor exportDescriptor)
Deprecated.Override if you want to prohibit certain types of export zips from being importedvoid
setBackupContainerReaderFactory(BackupContainerReaderFactory backupContainerReaderFactory)
Deprecated.void
setBuildIndex(boolean buildIndex)
Deprecated.void
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated.void
setIndexManager(IndexManager indexManager)
Deprecated.void
setLocalFileName(String localFileName)
Deprecated.void
setLongRunningTaskManager(LongRunningTaskManagerInternal longRunningTaskManager)
Deprecated.void
setSalDarkFeatureManager(com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager)
Deprecated.void
setTaskId(String taskId)
Deprecated.-
Methods inherited from class com.atlassian.confluence.importexport.actions.AbstractBackupRestoreAction
getBuildInformation, getConfluenceHome, getFilenames, getFilesInRestoreFolder, getFullExportBackwardsCompatibility, getImportExportManager, getMinimumFullImportVersion, getMinimumSpaceImportVersion, getSystemFileSeparator, isPermitted, isSynchronous, isZduEnabled, setApplicationProperties, setConfluenceHome, setImportExportManager, setSynchronous, setZduManager
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Field Detail
-
RESTORE_DIR
public static final String RESTORE_DIR
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public String execute() throws Exception
Deprecated.- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
getTask
public final com.atlassian.core.task.longrunning.LongRunningTask getTask()
Deprecated.
-
createImportTask
protected com.atlassian.core.task.longrunning.LongRunningTask createImportTask(DefaultImportContext context)
Deprecated.
-
getRestoreFileFromUpload
protected File getRestoreFileFromUpload() throws ImportExportException
Deprecated.retrieves restore file from upload- Throws:
ImportExportException
-
getRestoreFileFromFileSystem
protected File getRestoreFileFromFileSystem() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
isImportAllowed
protected boolean isImportAllowed(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
Deprecated.Override if you want to prohibit certain types of export zips from being imported
-
getLocalFileName
public String getLocalFileName()
Deprecated.
-
setLocalFileName
public void setLocalFileName(String localFileName)
Deprecated.
-
isBuildIndex
public boolean isBuildIndex()
Deprecated.
-
setBuildIndex
public void setBuildIndex(boolean buildIndex)
Deprecated.
-
setEventPublisher
public final void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated.
-
setSalDarkFeatureManager
public void setSalDarkFeatureManager(com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager)
Deprecated.
-
setIndexManager
public void setIndexManager(IndexManager indexManager)
Deprecated.
-
setLongRunningTaskManager
public void setLongRunningTaskManager(LongRunningTaskManagerInternal longRunningTaskManager)
Deprecated.
-
getTaskId
public String getTaskId()
Deprecated.
-
setTaskId
public void setTaskId(String taskId)
Deprecated.
-
getIndexManager
protected IndexManager getIndexManager()
Deprecated.
-
createImportContext
protected abstract DefaultImportContext createImportContext(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
Deprecated.
-
getRestoreFile
protected abstract File getRestoreFile() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
setBackupContainerReaderFactory
public void setBackupContainerReaderFactory(BackupContainerReaderFactory backupContainerReaderFactory)
Deprecated.
-
-