public abstract class AbstractImportAction extends AbstractBackupRestoreAction
| Modifier and Type | Field and Description |
|---|---|
static String |
RESTORE_DIR |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
AbstractImportAction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract DefaultImportContext |
createImportContext(ExportDescriptor exportDescriptor) |
protected com.atlassian.core.task.longrunning.LongRunningTask |
createImportTask(DefaultImportContext context) |
String |
execute() |
protected ConfluenceIndexManager |
getIndexManager() |
String |
getLocalFileName() |
protected abstract File |
getRestoreFile() |
protected File |
getRestoreFileFromFileSystem() |
protected File |
getRestoreFileFromUpload()
retrieves restore file from upload
|
com.atlassian.core.task.longrunning.LongRunningTask |
getTask() |
String |
getTaskId() |
boolean |
isBuildIndex() |
protected boolean |
isImportAllowed(ExportDescriptor exportDescriptor)
Override if you want to prohibit certain types of export zips from being imported
|
void |
setBuildIndex(boolean buildIndex) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setIndexManager(ConfluenceIndexManager indexManager) |
void |
setLocalFileName(String localFileName) |
void |
setLongRunningTaskManager(LongRunningTaskManagerInternal longRunningTaskManager) |
void |
setTaskId(String taskId) |
getBuildInformation, getFilesInRestoreFolder, getFullExportBackwardsCompatibility, getImportExportManager, getMinimumFullImportVersion, getMinimumSpaceImportVersion, getSystemFileSeparator, isPermitted, isSynchronous, setImportExportManager, setSynchronousaddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManageraddActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic static final String RESTORE_DIR
public String execute() throws Exception
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportExceptionpublic final com.atlassian.core.task.longrunning.LongRunningTask getTask()
protected com.atlassian.core.task.longrunning.LongRunningTask createImportTask(DefaultImportContext context)
protected File getRestoreFileFromUpload() throws ImportExportException
ImportExportExceptionprotected File getRestoreFileFromFileSystem() throws ImportExportException
ImportExportExceptionprotected boolean isImportAllowed(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
public String getLocalFileName()
public void setLocalFileName(String localFileName)
public boolean isBuildIndex()
public void setBuildIndex(boolean buildIndex)
public final void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setIndexManager(ConfluenceIndexManager indexManager)
public void setLongRunningTaskManager(LongRunningTaskManagerInternal longRunningTaskManager)
public String getTaskId()
public void setTaskId(String taskId)
protected ConfluenceIndexManager getIndexManager()
protected abstract DefaultImportContext createImportContext(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
protected abstract File getRestoreFile() throws ImportExportException
ImportExportExceptionCopyright © 2003–2017 Atlassian. All rights reserved.