| es.udc.mypersonalizer.kernel.controller.actions.DefaultAction es.udc.mypersonalizer.portal.controller.actions.content.AddWorkspaceAction
AddWorkspaceAction | public class AddWorkspaceAction extends DefaultAction (Code) | | This action adds a workspace to the user's desktop. If the user is a normal
user, this action can add one of the workspaces that the
mypersonalizer user already has, adding also the same services and
with the same layout. If the user is mypersonalizer, adds one of
the WorkspaceDefinitions that the system has, creating an empty
workspace. It calls the model action called
AddWorkspaceAction, which must be registered in configuration.
It also performs the adequate updates in the session (changes the desktop
layout, the available workspaces....)
It receives as a parameter a struts action form which must have been
populated with the following data:
- workspace: If the user is "mypersonalizer", this parameter
will contain the "workspace type" of the workspace to be added. If
it is a normal user, it will be the identifier
of the mypersonalizer workspace that must be cloned to create the new
one.
- workspaceName: (OPTIONAL) The name the user wants to
assign to the new workspace.
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.
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)
|
|
|