Added Collateral Table List

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@111536 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-01-29 17:33:19 +00:00 committed by Giancarlo Panichi
parent 8da4d74155
commit 7dfc182473
10 changed files with 50 additions and 40 deletions

View File

@ -18,6 +18,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -232,10 +233,10 @@ public class ChangeTableTypePanel extends FramedPanel implements
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.CHANGETABLETYPE, trId, why);
ChangeTableRequestType.CHANGETABLETYPE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -248,10 +249,10 @@ public class ChangeTableTypePanel extends FramedPanel implements
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.CHANGETABLETYPE, trId, why);
ChangeTableRequestType.CHANGETABLETYPE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -12,6 +12,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -81,10 +82,10 @@ public class CloneTabularResource implements MonitorDialogListener {
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLECLONED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.CLONETABULARRESOURCE, trId, why);
ChangeTableRequestType.CLONETABULARRESOURCE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -97,10 +98,10 @@ public class CloneTabularResource implements MonitorDialogListener {
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.CLONETABULARRESOURCE, trId, why);
ChangeTableRequestType.CLONETABULARRESOURCE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -12,6 +12,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -115,10 +116,10 @@ public class HistoryDiscard implements MonitorDialogListener {
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.ROLLBACK, trId, why);
ChangeTableRequestType.ROLLBACK, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -131,10 +132,10 @@ public class HistoryDiscard implements MonitorDialogListener {
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.ROLLBACK, trId, why);
ChangeTableRequestType.ROLLBACK, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -21,6 +21,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -363,10 +364,10 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.ROLLBACK, trId, why);
ChangeTableRequestType.ROLLBACK, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -379,10 +380,10 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.ROLLBACK, trId, why);
ChangeTableRequestType.ROLLBACK, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -18,6 +18,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataType;
@ -407,10 +408,10 @@ public class DenormalizePanel extends FramedPanel implements
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.DENORMALIZE, trId, why);
ChangeTableRequestType.DENORMALIZE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -423,10 +424,10 @@ public class DenormalizePanel extends FramedPanel implements
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.DENORMALIZE, trId, why);
ChangeTableRequestType.DENORMALIZE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -19,6 +19,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -304,10 +305,10 @@ public class NormalizePanel extends FramedPanel implements
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.NORMALIZE, trId, why);
ChangeTableRequestType.NORMALIZE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -320,10 +321,10 @@ public class NormalizePanel extends FramedPanel implements
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.NORMALIZE, trId, why);
ChangeTableRequestType.NORMALIZE, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -15,6 +15,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -95,10 +96,10 @@ public class DeleteRows implements MonitorDialogListener {
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.DELETEROWS, trId, why);
ChangeTableRequestType.DELETEROWS, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -111,10 +112,10 @@ public class DeleteRows implements MonitorDialogListener {
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.DELETEROWS, trId, why);
ChangeTableRequestType.DELETEROWS, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -19,6 +19,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
@ -332,10 +333,10 @@ public class DuplicatesRowsPanel extends FramedPanel implements
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.DUPLICATES, trId, why);
ChangeTableRequestType.DUPLICATES, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -348,10 +349,10 @@ public class DuplicatesRowsPanel extends FramedPanel implements
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.DUPLICATES, trId, why);
ChangeTableRequestType.DUPLICATES, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -24,6 +24,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableReque
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.CellData;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.grid.model.RowRaw;
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataType;
@ -783,10 +784,10 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.EDITROW, trId, why);
ChangeTableRequestType.EDITROW, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -799,10 +800,10 @@ public class EditRowPanel extends FramedPanel implements MonitorDialogListener {
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.EDITROW, trId, why);
ChangeTableRequestType.EDITROW, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();

View File

@ -30,6 +30,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableReque
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.WidgetRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
import org.gcube.portlets.user.td.widgetcommonevent.shared.RequestProperties;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
@ -656,10 +657,10 @@ public class ValidationsTasksPanel extends FramedPanel implements
}
@Override
public void operationComplete(TRId trId) {
public void operationComplete(OperationResult operationResult) {
ChangeTableWhy why = ChangeTableWhy.TABLEUPDATED;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.TASKRESUME, trId, why);
ChangeTableRequestType.TASKRESUME, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();
}
@ -672,10 +673,10 @@ public class ValidationsTasksPanel extends FramedPanel implements
}
@Override
public void operationStopped(TRId trId, String reason, String details) {
public void operationStopped(OperationResult operationResult, String reason, String details) {
ChangeTableWhy why = ChangeTableWhy.TABLECURATION;
ChangeTableRequestEvent changeTableRequestEvent = new ChangeTableRequestEvent(
ChangeTableRequestType.TASKRESUME, trId, why);
ChangeTableRequestType.TASKRESUME, operationResult.getTrId(), why);
eventBus.fireEvent(changeTableRequestEvent);
close();