use of org.activityinfo.shared.command.GetAdminLevels in project activityinfo by bedatadriven.
the class AdminLevelPanel method setIndicators.
public void setIndicators(Collection<Integer> indicatorIds) {
showLoading();
GetAdminLevels query = new GetAdminLevels();
query.setIndicatorIds(Sets.newHashSet(indicatorIds));
dispatcher.execute(query, new AsyncCallback<AdminLevelResult>() {
@Override
public void onFailure(Throwable caught) {
showLoadingFailed();
}
@Override
public void onSuccess(AdminLevelResult result) {
showOptions(result.getData());
}
});
}
use of org.activityinfo.shared.command.GetAdminLevels in project activityinfo by bedatadriven.
the class GetAdminLevelsHandlerTest method test.
@Test
public void test() {
GetAdminLevels query = new GetAdminLevels();
query.setIndicatorIds(Sets.newHashSet(1));
AdminLevelResult result = execute(query);
System.out.println(result.getData());
}
Aggregations