use of org.activityinfo.legacy.shared.command.result.VoidResult in project activityinfo by bedatadriven.
the class DbListPresenter method update.
private void update(UserDatabaseDTO db, final FormDialogImpl dialog) {
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("name", db.getName());
properties.put("fullName", db.getFullName());
properties.put("countryId", db.getCountry().getId());
dispatcher.execute(new UpdateEntity(db.getEntityName(), db.getId(), properties), new SuccessCallback<VoidResult>() {
@Override
public void onSuccess(VoidResult arg0) {
eventBus.fireEvent(AppEvents.SCHEMA_CHANGED);
loader.load();
dialog.hide();
}
});
}
use of org.activityinfo.legacy.shared.command.result.VoidResult in project activityinfo by bedatadriven.
the class AttachmentsPresenter method onDelete.
public void onDelete() {
DeleteSiteAttachment attachment = new DeleteSiteAttachment();
attachment.setBlobId(view.getSelectedItem());
dispatcher.execute(attachment, new AsyncCallback<VoidResult>() {
@Override
public void onFailure(Throwable caught) {
// callback.onFailure(caught);
}
@Override
public void onSuccess(VoidResult result) {
view.setActionEnabled(UIActions.DELETE, false);
view.setAttachmentStore(currentSite.getId());
}
});
}
Aggregations