private void tryDeleteSetFilter(SetFilterModelData selected) { AsyncCallback<List<SetFilterDTO>> callback = new AsyncCallback<List<SetFilterDTO>>() { public void onSuccess(List<SetFilterDTO> result) { util.info(pmsMessages.msgSuccessDeleteSetFilter()); } public void onFailure(Throwable caught) { util.error(pmsMessages.msgErrorDeleteSetFilter()); } }; portalsService.removeSetFilter(portalId, selected.getDTO().getName(), callback); }
private void tryDeleteAllSetFilter() { AsyncCallback<List<SetFilterDTO>> callback = new AsyncCallback<List<SetFilterDTO>>() { public void onSuccess(List<SetFilterDTO> result) { util.info(pmsMessages.msgSuccessDeleteAllSetFilter()); } public void onFailure(Throwable caught) { util.error(pmsMessages.msgErrorDeleteAllSetFilter()); } }; portalsService.clearSetFilters(portalId, callback); }
private void tryGetSetFilters() { AsyncCallback<List<SetFilterDTO>> callback = new AsyncCallback<List<SetFilterDTO>>() { public void onSuccess(List<SetFilterDTO> result) { List<SetFilterModelData> list = new ArrayList<SetFilterModelData>(); for (SetFilterDTO dto : result) { list.add(new SetFilterModelData(dto)); } grid.getStore().removeAll(); grid.getStore().add(list); } public void onFailure(Throwable caught) { util.error(pmsMessages.msgErrorGetSetFilters()); } }; portalsService.getSetFilters(portalId, callback); }