| es.udc.mypersonalizer.kernel.controller.actions.DefaultAction es.udc.mypersonalizer.portal.controller.actions.content.RemoveWorkspaceAction
RemoveWorkspaceAction | public class RemoveWorkspaceAction extends DefaultAction (Code) | | This action removes a workspace from the user's desktop. If the
user is mypersonalizer, then this removal implies also the removal
of all the workspaces of the same type for all the users. It calls the model
action called RemoveWorkspaceAction, which must be registered
in configuration. It also updates the session adequately, including changes
to the default and current layouts (if the current layout is removed,
the user is forwarded to the default one).
It receives as a parameter a struts action form which must have been
populated with the following data:
- workspaceIdentifier: The property identifier of the workspace
being removed.
For error notifications, it asumes the following keys to be declared in the
resources file:
- ErrorMessages.ChangeDesktopContent.errorRemovingWorkspace:
which will be displayed if the user tries to remove a workspace for
which he / she has no removal permissions.
This action requires a Success forward, which will usually point
to the action which shows the desktop contents to the user to let him/her
change them, which is usully called ChangeDesktopContent.do. It
also requires a Fail forward, in case there is any error related to
permissions, usually pointing to the action which displays the desktop
contents. This is the same as Success.
author: Daniel Fernandez since: 1.0 |
Methods inherited from es.udc.mypersonalizer.kernel.controller.actions.DefaultAction | abstract protected ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) protected ActionForward doOnError(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Exception exception)(Code)(Java Doc) public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
|
|
|