/* * Created on 18/Nov/2003 * */ package net.sourceforge.fenixedu.presentationTier.Action.teacher; import net.sourceforge.fenixedu.applicationTier.Servico.teacher.ReadExternalActivities; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sourceforge.fenixedu.applicationTier.IUserView; import net.sourceforge.fenixedu.dataTransferObject.SiteView; import net.sourceforge.fenixedu.presentationTier.Action.base.FenixAction; import net.sourceforge.fenixedu.presentationTier.Action.resourceAllocationManager.utils.ServiceUtils; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * @author Leonor Almeida * @author Sergio Montelobo * */ public class ReadExternalActivitiesAction extends FenixAction { /* * (non-Javadoc) * * @seeorg.apache.struts.action.Action#execute(org.apache.struts.action. * ActionMapping, org.apache.struts.action.ActionForm, * javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserView userView = getUserView(request); SiteView siteView = (SiteView) ReadExternalActivities.run(userView.getUtilizador()); request.setAttribute("siteView", siteView); return mapping.findForward("show-form"); } }