use of org.activityinfo.legacy.shared.command.GetSiteAttachments in project activityinfo by bedatadriven.
the class AttachmentsTab method setAttachmentStore.
@Override
public void setAttachmentStore(int siteId) {
GetSiteAttachments getAttachments = new GetSiteAttachments();
getAttachments.setSiteId(siteId);
dispatcher.execute(getAttachments, new AsyncCallback<SiteAttachmentResult>() {
@Override
public void onFailure(Throwable caught) {
// callback.onFailure(caught);
}
@Override
public void onSuccess(SiteAttachmentResult result) {
store.removeAll();
store.add(result.getData());
}
});
}
Aggregations