public class ExportDriver extends org.jboss.dashboard.ui.panel.PanelDriver
| Modifier and Type | Field and Description |
|---|---|
static String |
IMPORT_PREFFIX |
static String |
PAGE_EXPORT_RESULT |
static String |
PAGE_IMPORT_PREVIEW |
static String |
PAGE_IMPORT_RESULT |
static String |
PAGE_SHOW |
static String |
PARAM_SHOW_EXPORT |
static String |
PARAM_SHOW_IMPORT |
static String |
PARAM_USE_BLANKS |
static String |
RESOURCE_PREFFIX |
static String |
WORKSPACE_PREFFIX |
PAGE_EDIT, PAGE_HEADER, PAGE_HELP_MODE, PAGE_MANAGE_INVALID_DRIVER, panelSecurity, PARAMETER_ACTION_EXECUTED_ENABLED, parameters| Constructor and Description |
|---|
ExportDriver() |
_execute, actionChangePage, activateConfigMode, activateEditMode, activateHelpMode, activateNormalMode, addMethodPermission, addParameter, addParameters, addSystemParameter, afterInvokeAction, afterPanelClosed, afterPanelCustomPropertiesModified, afterPanelPlacedInRegion, afterPanelPropertiesModified, afterRenderPanel, beforeInvokeAction, beforePanelClosed, beforePanelInstanceRemove, beforePanelInstanceRemove, beforePanelPlacedInRegion, beforePanelRemoved, beforeRenderPanel, canInvokeAction, checkInvokeAction, checkMethodSecurity, copyDirectory, copyFile, execute, fireAfterInvokeAction, fireAfterPanelClosed, fireAfterPanelPlacedInRegion, fireAfterRenderPanel, fireBeforeInvokeAction, fireBeforePanelInstanceRemove, fireBeforePanelPlacedInRegion, fireBeforePanelRemoved, fireBeforeRenderPanel, firePanelCustomPropertiesModified, firePanelPropertiesModified, getActionsBundle, getAllParameters, getConfigHeight, getConfigWidth, getEditHeight, getEditWidth, getHelpHeight, getHelpWidth, getMethodName, getPageEdit, getPageHelpMode, getPanelDir, getPanelDir, getPanelDirMapping, getPanelDirMapping, getPanelHTMLContent, getPanelSession, getPanelSession, getPanelSession, getResourceForPermission, getShowPanelPageComponent, getTextShownByInstance, getURLWhenMaximized, hasMethodAccess, initPanel, initPermissionsParameters, initSystemParameters, isDoubleClickProtected, isSystemAction, move, panelActionClose, panelActionEditMode, panelActionFactory, panelActionHelpMode, panelActionInvalidateCache, panelActionMaximize, panelActionMaximizeInRegion, panelActionMinimize, panelActionMoveBack, panelActionMoveForward, panelActionRefreshPanel, panelActionRemove, panelActionRestore, panelActionSelect, panelActionShowMode, panelActionStartConfig, replicateData, supportsEditMode, supportsHelpModepublic static final String PAGE_SHOW
public static final String PAGE_EXPORT_RESULT
public static final String PAGE_IMPORT_PREVIEW
public static final String PAGE_IMPORT_RESULT
public static final String WORKSPACE_PREFFIX
public static final String RESOURCE_PREFFIX
public static final String IMPORT_PREFFIX
public static final String PARAM_USE_BLANKS
public static final String PARAM_SHOW_EXPORT
public static final String PARAM_SHOW_IMPORT
public void init(org.jboss.dashboard.ui.panel.PanelProvider provider) throws Exception
init in class org.jboss.dashboard.ui.panel.PanelDriverExceptionpublic org.jboss.dashboard.workspace.WorkspacesManager getWorkspacesManager()
public org.jboss.dashboard.workspace.export.ExportManager getExportManager()
public org.jboss.dashboard.workspace.export.ExportSessionInfo getSessionInfo()
public void initPanelSession(org.jboss.dashboard.workspace.PanelSession panelSession, javax.servlet.http.HttpSession session)
initPanelSession in class org.jboss.dashboard.ui.panel.PanelDriverpublic org.jboss.dashboard.ui.controller.CommandResponse actionGoToStart(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request) throws Exception
Exceptionpublic org.jboss.dashboard.ui.controller.CommandResponse actionDownloadExport(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request) throws Exception
Exceptionpublic org.jboss.dashboard.ui.controller.CommandResponse actionStartExport(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request) throws Exception
Exceptionpublic org.jboss.dashboard.ui.controller.CommandResponse actionStartImport(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request) throws FileNotFoundException, IOException
Starts importing a workspace file.
For backwards compatibility, import allowed formats are ZIP and XML
FileNotFoundExceptionIOExceptionprotected boolean isZipFile(File file) throws IOException
Determine whether a file is a ZIP File by reading the the magic bytes for the ZIP format, that must be 0x504b0304
IOExceptionpublic org.jboss.dashboard.ui.controller.CommandResponse actionImport(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request)
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.