/** Hit up the server */ public void refreshDiscussion() { assetService.loadDiscussionForAsset( artifact.getUuid(), new GenericCallback<List<DiscussionRecord>>() { public void onSuccess(List<DiscussionRecord> result) { updateCommentList(result); } }); }
private void sendNewComment(String text) { newCommentLayout.clear(); newCommentLayout.add(new Image(images.spinner())); assetService.addToDiscussionForAsset( artifact.getUuid(), text, new GenericCallback<List<DiscussionRecord>>() { public void onSuccess(List<DiscussionRecord> result) { showNewCommentButton(); updateCommentList(result); } }); }