Interface NewsServiceAsync


  • public interface NewsServiceAsync
    The async counterpart of NewsService.
    • Method Detail

      • getAllUpdateUserFeeds

        void getAllUpdateUserFeeds​(int feedsNoPerCategory,
                                   com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)
      • getOnlyConnectionsUserPosts

        void getOnlyConnectionsUserPosts​(com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)
      • like

        void like​(String postid,
                  String postText,
                  String postOwnerId,
                  com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
      • getAllLikesByPost

        void getAllLikesByPost​(String postid,
                               com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.Like>> callback)
      • getOnlyMyUserPosts

        void getOnlyMyUserPosts​(com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)
      • getUserSettings

        void getUserSettings​(com.google.gwt.user.client.rpc.AsyncCallback<UserSettings> callback)
      • getAllCommentsByPost

        void getAllCommentsByPost​(String postid,
                                  com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.Comment>> callback)
      • deleteComment

        void deleteComment​(String commentid,
                           String feedid,
                           com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
      • deletePost

        void deletePost​(String feedid,
                        com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
      • editComment

        void editComment​(String text,
                         org.gcube.portal.databook.shared.Comment toEdit,
                         HashSet<MentionedDTO> mentionedUsers,
                         com.google.gwt.user.client.rpc.AsyncCallback<OperationResult> callback)
      • getOnlyLikedPosts

        void getOnlyLikedPosts​(com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)
      • getSinglePost

        void getSinglePost​(String postKey,
                           com.google.gwt.user.client.rpc.AsyncCallback<org.gcube.portal.databook.shared.EnhancedFeed> callback)
      • getMorePosts

        void getMorePosts​(int from,
                          int quantity,
                          com.google.gwt.user.client.rpc.AsyncCallback<MorePostsBean> callback)
      • unlike

        void unlike​(String postid,
                    String postText,
                    String postOwnerId,
                    com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
      • getOrganizationUsers

        void getOrganizationUsers​(com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean>> callback)
      • getPostsByHashtag

        void getPostsByHashtag​(String hashtag,
                               com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)
      • getPostsByQuery

        void getPostsByQuery​(String query,
                             int from,
                             int quantity,
                             com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)
      • getPostsRelatedToUserStatistics

        void getPostsRelatedToUserStatistics​(org.gcube.portal.databook.shared.ShowUserStatisticAction action,
                                             int from,
                                             int quantity,
                                             com.google.gwt.user.client.rpc.AsyncCallback<ArrayList<org.gcube.portal.databook.shared.EnhancedFeed>> callback)