use of org.activityinfo.store.query.server.FormSupervisorAdapter in project activityinfo by bedatadriven.
the class AbstractMySqlTest method query.
protected final void query(QueryModel queryModel) {
ColumnSetBuilder builder = new ColumnSetBuilder(catalog, cache, new FormSupervisorAdapter(catalog, userId));
columnSet = builder.build(queryModel);
for (String field : columnSet.getColumns().keySet()) {
System.out.println(field + ": " + column(field));
}
}
use of org.activityinfo.store.query.server.FormSupervisorAdapter in project activityinfo by bedatadriven.
the class GetSitesHandler method initialiseHandler.
private void initialiseHandler(GetSites command, User user) {
catalog = catalogProvider.get();
if (catalog != null) {
this.command = command;
builder = new ColumnSetBuilder(catalog, new AppEngineFormScanCache(), new FormSupervisorAdapter(catalog, user.getId()));
linkedBuilder = new ColumnSetBuilder(catalog, new AppEngineFormScanCache(), new NullFormSupervisor());
batchFormTreeBuilder = new BatchingFormTreeBuilder(catalog);
batch = builder.createNewBatch();
linkedBatch = linkedBuilder.createNewBatch();
selfLinkedActivities = Maps.newHashMap();
sortInfo = command.getSortInfo();
offset = command.getOffset();
limit = command.getLimit();
totalResultLength = 0;
} else {
throw new CommandException("Could not retrieve form catalog");
}
}
Aggregations