Search in sources :

Example 1 with GetSiteAttachments

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());
        }
    });
}
Also used : GetSiteAttachments(org.activityinfo.legacy.shared.command.GetSiteAttachments) SiteAttachmentResult(org.activityinfo.legacy.shared.command.result.SiteAttachmentResult)

Aggregations

GetSiteAttachments (org.activityinfo.legacy.shared.command.GetSiteAttachments)1 SiteAttachmentResult (org.activityinfo.legacy.shared.command.result.SiteAttachmentResult)1