64 lines
2.2 KiB
Java
64 lines
2.2 KiB
Java
package org.gcube.portlets.user.newsfeed.client;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashSet;
|
|
|
|
import org.gcube.social_networking.socialnetworking.model.shared.Comment;
|
|
import org.gcube.social_networking.socialnetworking.model.shared.EnhancedPost;
|
|
import org.gcube.social_networking.socialnetworking.model.shared.Like;
|
|
import org.gcube.social_networking.socialnetworking.model.shared.ShowUserStatisticAction;
|
|
import org.gcube.portlets.user.newsfeed.shared.MentionedDTO;
|
|
import org.gcube.portlets.user.newsfeed.shared.MorePostsBean;
|
|
import org.gcube.portlets.user.newsfeed.shared.OperationResult;
|
|
import org.gcube.portlets.user.newsfeed.shared.UserSettings;
|
|
import org.gcube.portlets.widgets.pickitem.shared.ItemBean;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
/**
|
|
* The client side stub for the RPC service.
|
|
*/
|
|
@RemoteServiceRelativePath("newsServlet")
|
|
public interface NewsService extends RemoteService {
|
|
ArrayList<EnhancedPost> getAllUpdateUserFeeds(int feedsNoPerCategory);
|
|
|
|
ArrayList<EnhancedPost> getOnlyConnectionsUserPosts();
|
|
|
|
ArrayList<EnhancedPost> getOnlyMyUserPosts();
|
|
|
|
ArrayList<EnhancedPost> getOnlyLikedPosts();
|
|
|
|
ArrayList<EnhancedPost> getPostsByHashtag(String hashtag);
|
|
|
|
ArrayList<EnhancedPost> getPostsByQuery(String query, int from, int quantity);
|
|
|
|
ArrayList<EnhancedPost> getPostsRelatedToUserStatistics(ShowUserStatisticAction action, int from, int quantity);
|
|
|
|
MorePostsBean getMorePosts(int from, int quantity);
|
|
|
|
boolean like(String postid, String postText, String postOwnerId);
|
|
|
|
boolean unlike(String postid, String postText, String postOwnerId);
|
|
|
|
boolean deleteComment(String commentid, String feedid);
|
|
|
|
boolean deletePost(String postid);
|
|
|
|
OperationResult comment(String feedid, String text,
|
|
HashSet<MentionedDTO> mentionedUsers, String feedOwnerId,
|
|
boolean isAppFeed);
|
|
|
|
OperationResult editComment(String text, Comment toEdit, HashSet<MentionedDTO> mentionedUsers);
|
|
|
|
ArrayList<Like> getAllLikesByPost(String postid);
|
|
|
|
ArrayList<Comment> getAllCommentsByPost(String feedid);
|
|
|
|
UserSettings getUserSettings();
|
|
|
|
EnhancedPost getSinglePost(String postKey);
|
|
|
|
ArrayList<ItemBean> getOrganizationUsers();
|
|
}
|