use of org.activityinfo.legacy.shared.command.GetAdminLevels in project activityinfo by bedatadriven.
the class Dimensions method queryAdminLevels.
private static GetAdminLevels queryAdminLevels(Set<Integer> indicators) {
GetAdminLevels query = new GetAdminLevels();
query.setIndicatorIds(indicators);
return query;
}
use of org.activityinfo.legacy.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.legacy.shared.command.GetAdminLevels in project activityinfo by bedatadriven.
the class ClusteringOptionsWidget method loadForm.
public void loadForm(final MapLayer layer) {
// mask();
destroyForm();
GetAdminLevels query = new GetAdminLevels();
query.setIndicatorIds(Sets.newHashSet(layer.getIndicatorIds()));
service.execute(query, new AsyncCallback<AdminLevelResult>() {
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}
@Override
public void onSuccess(AdminLevelResult result) {
buildForm(result.getData());
}
});
}
use of org.activityinfo.legacy.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