public abstract class AbstractFileRestoreAction extends AbstractImportAction
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 |
---|
AbstractFileRestoreAction() |
Modifier and Type | Method and Description |
---|---|
protected DefaultImportContext |
createImportContext(ExportDescriptor exportDescriptor)
Builds the import context from the restore file xml
|
protected abstract boolean |
isDeleteWorkingFile()
Determines whether to delete the file after processing
|
protected boolean |
isImportAllowed(ExportDescriptor exportDescriptor)
Override if you want to prohibit certain types of export zips from being imported
|
void |
setDocumentationBeanFactory(DocumentationBeanFactory docBeanFactory) |
void |
setSpaceManager(SpaceManager spaceManager) |
createImportTask, execute, getIndexManager, getLocalFileName, getRestoreFile, getRestoreFileFromFileSystem, getRestoreFileFromUpload, getTask, getTaskId, isBuildIndex, setBuildIndex, setEventPublisher, setIndexManager, setLocalFileName, setLongRunningTaskManager, setTaskId
getBuildInformation, getFilesInRestoreFolder, getFullExportBackwardsCompatibility, getImportExportManager, getMinimumFullImportVersion, getMinimumSpaceImportVersion, getSystemFileSeparator, isPermitted, isSynchronous, setImportExportManager, setSynchronous
addActionError, 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, setWebInterfaceManager
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
protected boolean isImportAllowed(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
AbstractImportAction
isImportAllowed
in class AbstractImportAction
ImportExportException
UnexpectedImportZipFileContents
protected DefaultImportContext createImportContext(ExportDescriptor exportDescriptor) throws ImportExportException, UnexpectedImportZipFileContents
createImportContext
in class AbstractImportAction
ImportExportException
UnexpectedImportZipFileContents
protected abstract boolean isDeleteWorkingFile()
public void setSpaceManager(SpaceManager spaceManager)
public void setDocumentationBeanFactory(DocumentationBeanFactory docBeanFactory)
Copyright © 2003–2018 Atlassian. All rights reserved.