Updated OperationMonitor
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@99297 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b04933862f
commit
3047749c1b
|
@ -0,0 +1,2 @@
|
||||||
|
disabled=06target
|
||||||
|
eclipse.preferences.version=1
|
|
@ -278,9 +278,10 @@ public interface TDGWTService extends RemoteService {
|
||||||
* Call discard operation on tabular resource
|
* Call discard operation on tabular resource
|
||||||
*
|
*
|
||||||
* @param trId
|
* @param trId
|
||||||
|
* @return
|
||||||
* @throws TDGWTServiceException
|
* @throws TDGWTServiceException
|
||||||
*/
|
*/
|
||||||
public RollBackSession discard(TRId trId) throws TDGWTServiceException;
|
public String startDiscard(TRId trId) throws TDGWTServiceException;
|
||||||
|
|
||||||
// Share
|
// Share
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -111,7 +111,7 @@ public interface TDGWTServiceAsync {
|
||||||
|
|
||||||
//RollBack
|
//RollBack
|
||||||
void startRollBack(RollBackSession rollBackSession,AsyncCallback<String> callback);
|
void startRollBack(RollBackSession rollBackSession,AsyncCallback<String> callback);
|
||||||
void discard(TRId trId,AsyncCallback<RollBackSession> callback);
|
void startDiscard(TRId trId,AsyncCallback<String> callback);
|
||||||
|
|
||||||
//Share
|
//Share
|
||||||
void getShareInfo(TRId trId, AsyncCallback<ShareInfo> callback);
|
void getShareInfo(TRId trId, AsyncCallback<ShareInfo> callback);
|
||||||
|
|
|
@ -4815,7 +4815,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public RollBackSession discard(TRId trId) throws TDGWTServiceException {
|
public String startDiscard(TRId trId) throws TDGWTServiceException {
|
||||||
try {
|
try {
|
||||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||||
ASLSession aslSession = SessionUtil.getAslSession(session);
|
ASLSession aslSession = SessionUtil.getAslSession(session);
|
||||||
|
@ -4836,6 +4836,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
String opDesc = null, opName = null;
|
String opDesc = null, opName = null;
|
||||||
OpHistory op = null;
|
OpHistory op = null;
|
||||||
RollBackSession rollBackSession = null;
|
RollBackSession rollBackSession = null;
|
||||||
|
String taskId=null;
|
||||||
if (history != null) {
|
if (history != null) {
|
||||||
if (history.size() > 1) {
|
if (history.size() > 1) {
|
||||||
HistoryStep step = history.get(history.size() - 2);
|
HistoryStep step = history.get(history.size() - 2);
|
||||||
|
@ -4847,7 +4848,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
sdf.format(step.getExecutionDate().getTime()));
|
sdf.format(step.getExecutionDate().getTime()));
|
||||||
logger.debug("Discard :" + op);
|
logger.debug("Discard :" + op);
|
||||||
rollBackSession = new RollBackSession(trId, historyId);
|
rollBackSession = new RollBackSession(trId, historyId);
|
||||||
startRollBack(rollBackSession);
|
taskId=startRollBack(rollBackSession);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Discard : step null");
|
logger.debug("Discard : step null");
|
||||||
|
@ -4860,7 +4861,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
logger.debug("Discard : not present");
|
logger.debug("Discard : not present");
|
||||||
}
|
}
|
||||||
|
|
||||||
return rollBackSession;
|
return taskId;
|
||||||
|
|
||||||
} catch (TDGWTSessionExpiredException e) {
|
} catch (TDGWTSessionExpiredException e) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
Loading…
Reference in New Issue