From 01b8052aaeaf4bd08e39b615565b769a44698a03 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Wed, 2 Mar 2016 11:01:39 +0000 Subject: [PATCH] added constant for TEST_SCOPE git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@124763 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../wsexplorer/server/WorkspaceExplorerServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java index f26fba8..1d2b1cf 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java @@ -51,6 +51,8 @@ public class WorkspaceExplorerServiceImpl extends RemoteServiceServlet implement public static final Logger _log = LoggerFactory.getLogger(WorkspaceExplorerServiceImpl.class); public static final String USERNAME_ATTRIBUTE = "username"; public static final String TEST_USER = "test.user"; + public static final String TEST_SCOPE = "/gcube/devsec/devVRE"; //DEV +// public static final String PRODUCTION_SCOPE = "/d4science.research-infrastructures.eu/gCubeApps"; //PRODUCTION /** @@ -77,7 +79,7 @@ public class WorkspaceExplorerServiceImpl extends RemoteServiceServlet implement user = TEST_USER; httpSession.setAttribute(USERNAME_ATTRIBUTE, user); ASLSession session = SessionManager.getInstance().getASLSession(sessionID, user); - session.setScope("/gcube/devsec/devVRE"); + session.setScope(TEST_SCOPE); return session; }