public abstract class AbstractImportAction extends AbstractBackupRestoreAction
Modifier and Type | Field and Description |
---|---|
static String |
RESTORE_DIR |
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, 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 IndexManager |
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(IndexManager indexManager) |
void |
setLocalFileName(String localFileName) |
void |
setLongRunningTaskManager(LongRunningTaskManagerInternal longRunningTaskManager) |
void |
setTaskId(String taskId) |
getBuildInformation, getFilenames, getFilesInRestoreFolder, getFullExportBackwardsCompatibility, getImportExportManager, getMinimumFullImportVersion, getMinimumSpaceImportVersion, getSystemFileSeparator, isPermitted, isSynchronous, setImportExportManager, setSynchronous
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, 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, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, 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, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
public static final String RESTORE_DIR
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public final com.atlassian.core.task.longrunning.LongRunningTask getTask()
protected com.atlassian.core.task.longrunning.LongRunningTask createImportTask(DefaultImportContext context)
protected File getRestoreFileFromUpload() throws ImportExportException
ImportExportException
protected File getRestoreFileFromFileSystem() throws ImportExportException
ImportExportException
protected 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(IndexManager indexManager)
public void setLongRunningTaskManager(LongRunningTaskManagerInternal longRunningTaskManager)
public String getTaskId()
public void setTaskId(String taskId)
protected IndexManager getIndexManager()
protected abstract DefaultImportContext createImportContext(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
protected abstract File getRestoreFile() throws ImportExportException
ImportExportException
Copyright © 2003–2019 Atlassian. All rights reserved.