Added INJECTED scope

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@134796 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-11-25 13:33:18 +00:00
parent e83c49a2ce
commit 9c4fc0f0b3
2 changed files with 9 additions and 15 deletions

View File

@ -1295,7 +1295,7 @@ public class AppController implements SubscriberInterface {
initPortlet(rootPanel, instanceWithGrouping, searchingForItemId, searchParameter, itemIdParameter, operationParameter);
//CheckSession if you do not need to something when the session expire
CheckSession.getInstance().startPolling();
//CheckSession.getInstance().startPolling();
}
/**

View File

@ -8,11 +8,11 @@ import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
/**
* @author Federico De Faveri defaveri@isti.cnr.it
* The Class WorkspacePortlet.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Nov 25, 2016
*/
public class WorkspacePortlet extends GenericPortlet{
@ -26,22 +26,16 @@ public class WorkspacePortlet extends GenericPortlet{
*/
public static final String VIEW_JSP = JSP_FOLDER + "WorkspacePortlet_view.jsp";
/**
* Do view.
*
* @param request .
* @param response .
* @throws IOException .
* @throws PortletException .
* @throws IOException .
*/
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
System.out.println("LOADING ********* FROM "+VIEW_JSP);
ScopeHelper.setContext(request, ScopeHelper.USERNAME_ATTRIBUTE);
// request.setAttribute("fromportlet","true");
// Invoke the JSP to render
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(VIEW_JSP);
rd.include(request,response);