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
This commit is contained in:
Francesco Mangiacrapa 2016-03-02 11:01:39 +00:00
parent 2f65af3258
commit 01b8052aae
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}