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
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeAction
(I_CmsDialogContext context) Executes the action.abstract String
Sets the absolute path (in the vfs) to a jsp file used for the action.protected String
getRequestString
(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 Details
-
A_CmsJSPAction
public A_CmsJSPAction()
-
-
Method Details
-
executeAction
Description copied from interface:I_CmsWorkplaceAction
Executes the action.- Parameters:
context
- the current dialog context.- See Also:
-
getJSPPath
Sets the absolute path (in the vfs) to a jsp file used for the action.- Returns:
- path of jsp file
-
getRequestString
Creates string for get—request with given list of resources.- Parameters:
resources
- to be transmitted- Returns:
- valid string for get-request
-