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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(I_CmsDialogContext context) Executes the action.abstract StringSets the absolute path (in the vfs) to a jsp file used for the action.protected StringgetRequestString(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, openDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.ui.contextmenu.I_CmsHasMenuItemVisibility
getVisibilityMethods 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_CmsWorkplaceActionExecutes 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
-