Package org.opencms.ui.actions
Class A_CmsJSPAction
- java.lang.Object
-
- org.opencms.ui.actions.A_CmsWorkplaceAction
-
- org.opencms.ui.actions.A_CmsJSPAction
-
- All Implemented Interfaces:
I_CmsWorkplaceAction
,I_CmsHasMenuItemVisibility
public abstract class A_CmsJSPAction extends A_CmsWorkplaceAction
Abstract class for actions to display a JSP file in a vaadin window.How to pass resources to and from JSP: -GET request parameter "resource" returns an array of UUIDs as String.
-JavaScript function "window.parent.changedResources(resources);" closes the window and returns the String array "resources" to the server
-
-
Constructor Summary
Constructors Constructor Description A_CmsJSPAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
executeAction(I_CmsDialogContext context)
Executes the action.abstract java.lang.String
getJSPPath()
Sets the absolute path (in the vfs) to a jsp file used for the action.protected java.lang.String
getRequestString(java.util.List<CmsResource> resources)
Creates string for get—request with given list of resources.-
Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitle, getDialogTitleKey, getTitle, getTitleKey, getVisibility, hasBlockingLocks, hasBlockingLocks, isActive, openDialog, openDialog
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencms.ui.contextmenu.I_CmsHasMenuItemVisibility
getVisibility
-
Methods inherited from interface org.opencms.ui.actions.I_CmsWorkplaceAction
getId
-
-
-
-
Constructor Detail
-
A_CmsJSPAction
public A_CmsJSPAction()
-
-
Method Detail
-
executeAction
public void executeAction(I_CmsDialogContext context)
Description copied from interface:I_CmsWorkplaceAction
Executes the action.- Parameters:
context
- the current dialog context.- See Also:
I_CmsWorkplaceAction.executeAction(org.opencms.ui.I_CmsDialogContext)
-
getJSPPath
public abstract java.lang.String getJSPPath()
Sets the absolute path (in the vfs) to a jsp file used for the action.- Returns:
- path of jsp file
-
getRequestString
protected java.lang.String getRequestString(java.util.List<CmsResource> resources)
Creates string for get—request with given list of resources.- Parameters:
resources
- to be transmitted- Returns:
- valid string for get-request
-
-