| es.udc.mypersonalizer.kernel.controller.actions.DefaultAction es.udc.mypersonalizer.portal.controller.actions.mainpage.MainPageAction
MainPageAction | public class MainPageAction extends DefaultAction (Code) | | This action performs all the operations necessary to display the user's
main page. It acts the following way:
- Asks the cache for the responses of the services to be displayed
in the current workspace.
- For the services which answer is not cached, asks the model for their
ServiceProperty objects (containing their configuration) for this
user through the model action called MainPageAction which
must be registered in configuration.
- Builds the Desktop tree of objects (see
es.udc.mypersonalizer.portal.view.mainpage.DesktopLayoutView ),
which contains all the data necessary for displaying the main page,
and puts it into the request.
- Builds an object with information about the user (see
es.udc.mypersonalizer.portal.view.mainpage.UserView ),
which is useful for the jsp page.
- Forwards to the jsp page which will display the contents.
This action requires the following forwards to be declared for it:
- Success: Which will point to the jsp that will display the
main page contents.
- RemoveServiceFromWorspace: Which will point to the URL that
will allow the removal of a service from the main page (by clicking on
the remove button).
- ChangeServiceButtonState: Which will point to the URL that
will allow to change a button's state.
It populates the request (before performing any forward operations)
with the following data:
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)
|
|
|