Package org.opencms.ui.apps.dbmanager
Class CmsDbImportApp
- java.lang.Object
-
- org.opencms.ui.apps.A_CmsWorkplaceApp
-
- org.opencms.ui.apps.A_CmsAttributeAwareApp
-
- org.opencms.ui.apps.dbmanager.CmsDbImportApp
-
- All Implemented Interfaces:
I_CmsReportApp
,I_CmsWorkplaceApp
public class CmsDbImportApp extends A_CmsAttributeAwareApp implements I_CmsReportApp
Class for the database import app.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CmsDbImportApp.Mode
Enumeration to distinguist between http- and server import.-
Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PATH_REPORT_HTTP
Path to the report from import(HTTP).static java.lang.String
PATH_REPORT_SERVER
Path to the report from import(server).-
Fields inherited from class org.opencms.ui.apps.A_CmsAttributeAwareApp
ATTR_INFO_COMPONENT, ATTR_MAIN_HEIGHT_FULL
-
Fields inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description CmsDbImportApp(CmsDbImportApp.Mode mode)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.LinkedHashMap<java.lang.String,java.lang.String>
getBreadCrumbForState(java.lang.String state)
Returns the current bread crumb entries in an ordered map.protected com.vaadin.ui.Component
getComponentForState(java.lang.String state)
Returns the app component for the given state.protected java.util.List<A_CmsWorkplaceApp.NavEntry>
getSubNavEntries(java.lang.String state)
Returns the sub navigation entries.void
goToMainView()
Method to open main view.void
openReport(java.lang.String path, A_CmsReportThread thread, java.lang.String title)
Method to open the report view for the import thread.-
Methods inherited from class org.opencms.ui.apps.A_CmsAttributeAwareApp
getAttributesForComponent, openSubView, updateAppAttributes, updateMainComponent
-
Methods inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, initUI, onStateChange, removeParamsFromState, setBreadCrumbEntries, updateBreadCrumb, updateSubNav
-
-
-
-
Field Detail
-
PATH_REPORT_HTTP
public static final java.lang.String PATH_REPORT_HTTP
Path to the report from import(HTTP).- See Also:
- Constant Field Values
-
PATH_REPORT_SERVER
public static final java.lang.String PATH_REPORT_SERVER
Path to the report from import(server).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsDbImportApp
public CmsDbImportApp(CmsDbImportApp.Mode mode)
Public constructor.- Parameters:
mode
- for import
-
-
Method Detail
-
goToMainView
public void goToMainView()
Description copied from interface:I_CmsReportApp
Method to open main view.- Specified by:
goToMainView
in interfaceI_CmsReportApp
- See Also:
I_CmsReportApp.goToMainView()
-
openReport
public void openReport(java.lang.String path, A_CmsReportThread thread, java.lang.String title)
Description copied from interface:I_CmsReportApp
Method to open the report view for the import thread.- Specified by:
openReport
in interfaceI_CmsReportApp
- Parameters:
path
- (state) in the appthread
- which gets started and for which the report gets displayedtitle
- to be shown for the report (title is caption of panel)- See Also:
I_CmsReportApp.openReport(java.lang.String, org.opencms.report.A_CmsReportThread, java.lang.String)
-
getBreadCrumbForState
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> getBreadCrumbForState(java.lang.String state)
Description copied from class:A_CmsWorkplaceApp
Returns the current bread crumb entries in an ordered map.- Specified by:
getBreadCrumbForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the current state- Returns:
- bread crumb entry name by state, in case the state is empty, the entry will be disabled
- See Also:
A_CmsWorkplaceApp.getBreadCrumbForState(java.lang.String)
-
getComponentForState
protected com.vaadin.ui.Component getComponentForState(java.lang.String state)
Description copied from class:A_CmsWorkplaceApp
Returns the app component for the given state.- Specified by:
getComponentForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the state to render- Returns:
- the app component
- See Also:
A_CmsWorkplaceApp.getComponentForState(java.lang.String)
-
getSubNavEntries
protected java.util.List<A_CmsWorkplaceApp.NavEntry> getSubNavEntries(java.lang.String state)
Description copied from class:A_CmsWorkplaceApp
Returns the sub navigation entries.- Specified by:
getSubNavEntries
in classA_CmsWorkplaceApp
- Parameters:
state
- the state- Returns:
- the sub navigation entries
- See Also:
A_CmsWorkplaceApp.getSubNavEntries(java.lang.String)
-
-