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
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.ui.WindowThe current dialog window.protected CmsJobTableTable containing the jobs.static final StringParameter copy.static final StringParameter job id.static final StringPath name edit.Fields inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseDialogWindow(boolean updateTable) Closes the currently opened window.voidcreateElement(CmsScheduledJobInfo element) Creates the element of type T in the system.voiddefaultAction(String elelemntId) Performs a default action.voiddeleteElements(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.ComponentgetComponentForState(String state) Returns the app component for the given state.getElement(String elementId) Reads out an element.protected CmsJobTableReturns 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.voidRestores the main view after leaving the editing mode.voidExecutes the given schedule job.voidwriteElement(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-trueto update the jobs table
-
createElement
Description copied from interface:I_CmsCRUDAppCreates the element of type T in the system.- Specified by:
createElementin interfaceI_CmsCRUDApp<CmsScheduledJobInfo>- Parameters:
element- to be saved- See Also:
-
defaultAction
Description copied from interface:I_CmsCRUDAppPerforms a default action.- Specified by:
defaultActionin interfaceI_CmsCRUDApp<CmsScheduledJobInfo>- Parameters:
elelemntId- id of element- See Also:
-
deleteElements
Description copied from interface:I_CmsCRUDAppDelete the given List of elements.- Specified by:
deleteElementsin interfaceI_CmsCRUDApp<CmsScheduledJobInfo>- Parameters:
jobIds- of elements to be deleted- See Also:
-
getAllElements
Description copied from interface:I_CmsCRUDAppGet all Elements.- Specified by:
getAllElementsin interfaceI_CmsCRUDApp<CmsScheduledJobInfo>- Returns:
- a list of all elements
- See Also:
-
getElement
Description copied from interface:I_CmsCRUDAppReads out an element.- Specified by:
getElementin 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-trueto 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_CmsCRUDAppWrites a changed element to the system which already exists.- Specified by:
writeElementin interfaceI_CmsCRUDApp<CmsScheduledJobInfo>- Parameters:
jobInfo- to be saved- See Also:
-
getBreadCrumbForState
Description copied from class:A_CmsWorkplaceAppReturns the current bread crumb entries in an ordered map.- Specified by:
getBreadCrumbForStatein 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_CmsWorkplaceAppReturns the app component for the given state.- Specified by:
getComponentForStatein 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
-