Package org.opencms.ui.apps.scheduler
Class CmsJobManagerApp
java.lang.Object
org.opencms.ui.apps.A_CmsWorkplaceApp
org.opencms.ui.apps.scheduler.CmsJobManagerApp
- All Implemented Interfaces:
I_CmsCRUDApp<CmsScheduledJobInfo>
,I_CmsWorkplaceApp
public class CmsJobManagerApp
extends A_CmsWorkplaceApp
implements I_CmsCRUDApp<CmsScheduledJobInfo>
The scheduled jobs manager app.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntry
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.ui.Window
The current dialog window.protected CmsJobTable
Table containing the jobs.static final String
Parameter copy.static final String
Parameter job id.static final String
Path name edit.Fields inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeDialogWindow
(boolean updateTable) Closes the currently opened window.void
createElement
(CmsScheduledJobInfo element) Creates the element of type T in the system.void
defaultAction
(String elelemntId) Performs a default action.void
deleteElements
(List<String> jobIds) Delete the given List of elements.Get all Elements.protected LinkedHashMap<String,
String> getBreadCrumbForState
(String state) Returns the current bread crumb entries in an ordered map.protected com.vaadin.ui.Component
getComponentForState
(String state) Returns the app component for the given state.getElement
(String elementId) Reads out an element.protected CmsJobTable
Returns the job table instance.protected List<A_CmsWorkplaceApp.NavEntry>
getSubNavEntries
(String state) Returns the sub navigation entries.openEditDialog
(String jobId, boolean copy) Creates the edit view for the given job id.void
Restores the main view after leaving the editing mode.void
Executes the given schedule job.void
writeElement
(CmsScheduledJobInfo jobInfo) Writes a changed element to the system which already exists.Methods inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, initUI, onStateChange, openSubView, removeParamsFromState, setBreadCrumbEntries, updateBreadCrumb, updateSubNav
-
Field Details
-
PARAM_COPY
Parameter copy.- See Also:
-
PARAM_JOB_ID
Parameter job id.- See Also:
-
PATH_NAME_EDIT
Path name edit.- See Also:
-
m_jobTable
Table containing the jobs. -
m_dialogWindow
The current dialog window.
-
-
Constructor Details
-
CmsJobManagerApp
public CmsJobManagerApp()
-
-
Method Details
-
closeDialogWindow
Closes the currently opened window.- Parameters:
updateTable
-true
to update the jobs table
-
createElement
Description copied from interface:I_CmsCRUDApp
Creates the element of type T in the system.- Specified by:
createElement
in interfaceI_CmsCRUDApp<CmsScheduledJobInfo>
- Parameters:
element
- to be saved- See Also:
-
defaultAction
Description copied from interface:I_CmsCRUDApp
Performs a default action.- Specified by:
defaultAction
in interfaceI_CmsCRUDApp<CmsScheduledJobInfo>
- Parameters:
elelemntId
- id of element- See Also:
-
deleteElements
Description copied from interface:I_CmsCRUDApp
Delete the given List of elements.- Specified by:
deleteElements
in interfaceI_CmsCRUDApp<CmsScheduledJobInfo>
- Parameters:
jobIds
- of elements to be deleted- See Also:
-
getAllElements
Description copied from interface:I_CmsCRUDApp
Get all Elements.- Specified by:
getAllElements
in interfaceI_CmsCRUDApp<CmsScheduledJobInfo>
- Returns:
- a list of all elements
- See Also:
-
getElement
Description copied from interface:I_CmsCRUDApp
Reads out an element.- Specified by:
getElement
in interfaceI_CmsCRUDApp<CmsScheduledJobInfo>
- Parameters:
elementId
- of the object- Returns:
- the object of type T
- See Also:
-
openEditDialog
Creates the edit view for the given job id.- Parameters:
jobId
- the id of the job to edit, or null to create a new jobcopy
-true
to create a copy of the given job- Returns:
- the edit view
-
restoreMainView
Restores the main view after leaving the editing mode. -
runJob
Executes the given schedule job.- Parameters:
job
- to be executed
-
writeElement
Description copied from interface:I_CmsCRUDApp
Writes a changed element to the system which already exists.- Specified by:
writeElement
in interfaceI_CmsCRUDApp<CmsScheduledJobInfo>
- Parameters:
jobInfo
- to be saved- See Also:
-
getBreadCrumbForState
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:
-
getComponentForState
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:
-
getJobTable
Returns the job table instance.- Returns:
- the job table instance
-