Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@94978 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-17 14:35:41 +00:00
parent 8346c76f88
commit 4ad7b3e5fd
1 changed files with 35 additions and 36 deletions

View File

@ -5774,9 +5774,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
opDesc = lastStep.getOperationDescription();
opName = opDesc;
historyId = lastStep.getId().getValue();
op = new OpHistory(historyId, opName,
opDesc, sdf.format(lastStep
.getExecutionDate().getTime()));
op = new OpHistory(historyId, opName, opDesc,
sdf.format(lastStep.getExecutionDate().getTime()));
}
}
@ -5828,9 +5827,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
opDesc = lastStep.getOperationDescription();
opName = opDesc;
historyId = lastStep.getId().getValue();
op = new OpHistory(historyId, opName,
opDesc, sdf.format(lastStep
.getExecutionDate().getTime()));
op = new OpHistory(historyId, opName, opDesc,
sdf.format(lastStep.getExecutionDate().getTime()));
}
}
@ -5886,9 +5884,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
historyId = step.getId().getValue();
opDesc = step.getOperationDescription();
opName = step.getOperationDescription();
op = new OpHistory(historyId, opName,
opDesc, sdf.format(step
.getExecutionDate().getTime()));
op = new OpHistory(historyId, opName, opDesc,
sdf.format(step.getExecutionDate().getTime()));
opHistoryList.add(op);
}
}
@ -5939,9 +5936,8 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
historyId = step.getId().getValue();
opDesc = step.getOperationDescription();
opName = step.getOperationDescription();
op = new OpHistory(historyId, opName,
opDesc, sdf.format(step
.getExecutionDate().getTime()));
op = new OpHistory(historyId, opName, opDesc,
sdf.format(step.getExecutionDate().getTime()));
opHistoryList.add(op);
}
}
@ -5984,18 +5980,21 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
OpHistory op = null;
RollBackSession rollBackSession = null;
if (history != null) {
HistoryStep step = history.get(1);
if (history.size() > 1) {
HistoryStep step = history.get(history.size() - 2);
if (step != null) {
historyId = step.getId().getValue();
opDesc = step.getOperationDescription();
opName = opDesc;
op = new OpHistory(historyId, opName,
opDesc, sdf.format(step
.getExecutionDate().getTime()));
op = new OpHistory(historyId, opName, opDesc,
sdf.format(step.getExecutionDate().getTime()));
logger.debug("Discard :" + op);
rollBackSession = new RollBackSession(trId, historyId);
rollBack(rollBackSession);
} else {
logger.debug("Discard : step null");
}
} else {
logger.debug("Discard : no previous step exist");
}