Minor Updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@134701 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2016-11-24 16:43:34 +00:00
parent d31743f9b0
commit ac7c2ad4af
8 changed files with 16 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.server.file.CSVFileUploadSession;
import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVFileUtil;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
@ -65,6 +66,7 @@ public class CSVImportFileServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -19,6 +19,7 @@ import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.server.file.CodelistMappingFileUploadSession;
import org.gcube.portlets.user.td.gwtservice.server.file.FileUploadListener;
import org.gcube.portlets.user.td.gwtservice.server.file.FileUtil;
@ -69,6 +70,7 @@ public class CodelistMappingUploadServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -19,6 +19,7 @@ import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.server.file.CSVFileUploadSession;
import org.gcube.portlets.user.td.gwtservice.server.file.FileUploadListener;
import org.gcube.portlets.user.td.gwtservice.server.file.FileUtil;
@ -66,6 +67,7 @@ public class LocalUploadServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.server.storage.FilesStorage;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
import org.slf4j.Logger;
@ -70,6 +71,7 @@ public class RetrieveChartFileServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -65,6 +66,7 @@ public class RetrieveFileAndDiscoverMimeTypeServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -18,6 +18,7 @@ import javax.servlet.http.HttpSession;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -67,6 +68,7 @@ public class TDLogsServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -15,6 +15,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -71,6 +72,7 @@ public class TDRStudioServlet extends HttpServlet {
aslSession= SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());

View File

@ -13,6 +13,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
import org.json.JSONArray;
import org.json.JSONException;
@ -62,6 +63,7 @@ public class TabularDataRowsXServlet extends HttpServlet {
ASLSession aslSession = SessionUtil.getAslSession(session);
String token = SessionUtil.getToken(aslSession);
logger.debug("UserToken: " + token);
ScopeProvider.instance.set(aslSession.getScope().toString());
} catch (TDGWTServiceException e) {
logger.error(e.getLocalizedMessage());