| es.udc.mypersonalizer.kernel.controller.actions.DefaultAction es.udc.mypersonalizer.portal.controller.actions.content.ChangeWorkspaceContentAction
ChangeWorkspaceContentAction | public class ChangeWorkspaceContentAction extends DefaultAction (Code) | | This action changes the contents of the current workspace. It receives the
list of service (identifiers) and passes it to the model action
called ChangeWorkspaceContentAction, which must be registered in
configuration. It also sets the new WorkspaceLayout object into the
session.
It receives as a parameter a struts action form which must have been
populated with the following data:
- workspaceName: The workspace name, so that it can be
changed.
- serviceIdentifiers: The list of service identifiers to be
displayed in the workspace.
For error notifications, it asumes the following keys to be declared in the
resources file:
- ErrorMessages.ChangeWorkspaceContent.errorAddingService: When
there's an error adding a concrete service (usually a permissions problem).
- ErrorMessages.ChangeWorkspaceContent.errorRemovingService:
When there's an error removing a service (usually a permission
problem).
This action requires a Success forward, which will usually point
to the portal main page. It also requires a Fail forward, in case
any error (permission related, possibly) happens during the operation,
usually pointing to the jsp page which shows the possible services to add
to the user.
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)
|
|
|