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 {
|
||||
try {
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
SessionUtil.getAslSession(session);
|
||||
|
||||
if (tabResource == null) {
|
||||
logger.error("Error setting TabResource: null");
|
||||
throw new TDGWTServiceException(
|
||||
|
@ -289,10 +291,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
SessionUtil.setTabResource(session, tabResource);
|
||||
SessionUtil.setTRId(session, tabResource.getTrId());
|
||||
return;
|
||||
|
||||
|
||||
} catch (TDGWTSessionExpiredException e) {
|
||||
throw e;
|
||||
|
||||
} catch (Throwable e) {
|
||||
logger.error(
|
||||
"Error setting TabResource parameter: "
|
||||
|
@ -312,7 +313,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
public TRId getCurrentTRId() throws TDGWTServiceException {
|
||||
try {
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
|
||||
SessionUtil.getAslSession(session);
|
||||
|
||||
TabResource currentTR = SessionUtil.getTabResource(session);
|
||||
logger.debug("getCurrentTRId()");
|
||||
if (currentTR == null) {
|
||||
|
@ -1460,6 +1462,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
public void startTDOpen(TDOpenSession s) throws TDGWTServiceException {
|
||||
try {
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
SessionUtil.getAslSession(session);
|
||||
SessionUtil.setTDOpenSession(session, s);
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue