Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@99172 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ddaf700787
commit
72d56be84c
|
@ -280,6 +280,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
throws TDGWTServiceException {
|
throws TDGWTServiceException {
|
||||||
try {
|
try {
|
||||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||||
|
SessionUtil.getAslSession(session);
|
||||||
|
|
||||||
if (tabResource == null) {
|
if (tabResource == null) {
|
||||||
logger.error("Error setting TabResource: null");
|
logger.error("Error setting TabResource: null");
|
||||||
throw new TDGWTServiceException(
|
throw new TDGWTServiceException(
|
||||||
|
@ -289,10 +291,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
SessionUtil.setTabResource(session, tabResource);
|
SessionUtil.setTabResource(session, tabResource);
|
||||||
SessionUtil.setTRId(session, tabResource.getTrId());
|
SessionUtil.setTRId(session, tabResource.getTrId());
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} catch (TDGWTSessionExpiredException e) {
|
} catch (TDGWTSessionExpiredException e) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
logger.error(
|
logger.error(
|
||||||
"Error setting TabResource parameter: "
|
"Error setting TabResource parameter: "
|
||||||
|
@ -312,7 +313,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
public TRId getCurrentTRId() throws TDGWTServiceException {
|
public TRId getCurrentTRId() throws TDGWTServiceException {
|
||||||
try {
|
try {
|
||||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||||
|
SessionUtil.getAslSession(session);
|
||||||
|
|
||||||
TabResource currentTR = SessionUtil.getTabResource(session);
|
TabResource currentTR = SessionUtil.getTabResource(session);
|
||||||
logger.debug("getCurrentTRId()");
|
logger.debug("getCurrentTRId()");
|
||||||
if (currentTR == null) {
|
if (currentTR == null) {
|
||||||
|
@ -1460,6 +1462,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
public void startTDOpen(TDOpenSession s) throws TDGWTServiceException {
|
public void startTDOpen(TDOpenSession s) throws TDGWTServiceException {
|
||||||
try {
|
try {
|
||||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||||
|
SessionUtil.getAslSession(session);
|
||||||
SessionUtil.setTDOpenSession(session, s);
|
SessionUtil.setTDOpenSession(session, s);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue