public class NewsServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements NewsService
| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_RETRIEVED_TIME |
static String |
NF_ORGANIZATIONUSERS_CACHE |
| Constructor and Description |
|---|
NewsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
OperationResult |
comment(String feedid,
String commentText,
HashSet<MentionedDTO> mentionedItemsSet,
String feedOwnerId,
boolean isAppFeed) |
boolean |
deleteComment(String commentid,
String feedid) |
boolean |
deletePost(String postid) |
void |
destroy() |
OperationResult |
editComment(org.gcube.portal.databook.shared.Comment toEdit) |
ArrayList<org.gcube.portal.databook.shared.Comment> |
getAllCommentsByPost(String postid) |
ArrayList<org.gcube.portal.databook.shared.Like> |
getAllLikesByPost(String postid) |
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getAllUpdateUserFeeds(int feedsNoPerCategory) |
MorePostsBean |
getMorePosts(int start,
int quantity)
MoreFeedsBean contains the timeline index of the last returned valid feed (because if you delete a feed is stays on in the timeline and is marked deleted)
and contains the Feeds
|
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getOnlyConnectionsUserPosts()
return only the user connection feeds
|
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getOnlyLikedPosts() |
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getOnlyMyUserPosts() |
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getOrganizationUsers() |
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getPostsByHashtag(String hashtag)
return the feeds having the hashtag passed as param the user has access on
|
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getPostsByQuery(String query,
int from,
int quantity) |
ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> |
getPostsRelatedToUserStatistics(org.gcube.portal.databook.shared.ShowUserStatisticAction action,
int from,
int quantity) |
org.gcube.portal.databook.shared.EnhancedFeed |
getSinglePost(String postKey)
return only one feed with all the comments
|
UserSettings |
getUserSettings()
this is the first method called by the web app
|
void |
init() |
boolean |
like(String postid,
String postText,
String postOwnerId) |
boolean |
unlike(String postid,
String postText,
String postOwnerId) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String NF_ORGANIZATIONUSERS_CACHE
public static final String LAST_RETRIEVED_TIME
public void init()
init in class javax.servlet.GenericServletpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic UserSettings getUserSettings()
getUserSettings in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getAllUpdateUserFeeds(int feedsNoPerCategory)
getAllUpdateUserFeeds in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getPostsByHashtag(String hashtag)
getPostsByHashtag in interface NewsServicehashtag - the hashtag to look for including '#'public ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getPostsByQuery(String query, int from, int quantity)
getPostsByQuery in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getOnlyConnectionsUserPosts()
getOnlyConnectionsUserPosts in interface NewsServicepublic org.gcube.portal.databook.shared.EnhancedFeed getSinglePost(String postKey)
getSinglePost in interface NewsServicepublic MorePostsBean getMorePosts(int start, int quantity)
getMorePosts in interface NewsServicestrat - the range start (most recent feeds for this vre) has to be greater than 0quantity - the number of most recent feeds for this vre starting from "start" parampublic ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getOnlyMyUserPosts()
getOnlyMyUserPosts in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getOnlyLikedPosts()
getOnlyLikedPosts in interface NewsServicepublic boolean like(String postid, String postText, String postOwnerId)
like in interface NewsServicepublic boolean unlike(String postid, String postText, String postOwnerId)
unlike in interface NewsServicepublic OperationResult comment(String feedid, String commentText, HashSet<MentionedDTO> mentionedItemsSet, String feedOwnerId, boolean isAppFeed)
comment in interface NewsServicefeedid - the id of the commented feedcommentText - the comment textfeedOwnerId - the username of the user who created the post that was commentedpublic OperationResult editComment(org.gcube.portal.databook.shared.Comment toEdit)
editComment in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.Like> getAllLikesByPost(String postid)
getAllLikesByPost in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.Comment> getAllCommentsByPost(String postid)
getAllCommentsByPost in interface NewsServicepublic boolean deleteComment(String commentid, String feedid)
deleteComment in interface NewsServicepublic boolean deletePost(String postid)
deletePost in interface NewsServicepublic ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getOrganizationUsers()
getOrganizationUsers in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.EnhancedFeed> getPostsRelatedToUserStatistics(org.gcube.portal.databook.shared.ShowUserStatisticAction action, int from, int quantity)
getPostsRelatedToUserStatistics in interface NewsServiceCopyright © 2019. All Rights Reserved.