public class NewsServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements NewsService
| Constructor and Description |
|---|
NewsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.portal.databook.shared.Comment |
comment(String feedid,
String commentText,
String feedOwnerId,
boolean isAppFeed) |
boolean |
deleteComment(String commentid,
String feedid) |
boolean |
deleteFeed(String feedid) |
void |
destroy() |
org.gcube.portal.databook.shared.Comment |
editComment(org.gcube.portal.databook.shared.Comment toEdit) |
ArrayList<org.gcube.portal.databook.shared.Comment> |
getAllCommentsByFeed(String feedid) |
ArrayList<org.gcube.portal.databook.shared.Like> |
getAllLikesByFeed(String feedid) |
ArrayList<EnhancedFeed> |
getAllUpdateUserFeeds(int feedsNoPerCategory) |
String |
getDevelopmentUser() |
MoreFeedsBean |
getMoreFeeds(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<EnhancedFeed> |
getOnlyConnectionsUserFeeds()
return only the user connection feeds
|
ArrayList<EnhancedFeed> |
getOnlyLikedFeeds() |
ArrayList<EnhancedFeed> |
getOnlyMyUserFeeds() |
EnhancedFeed |
getSingleFeed(String feedKey)
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 feedid,
String feedText,
String feedOwnerId) |
String |
transformUrls(String textToCheck)
utilty method that convert a URL in a text into a clickable link into the browser
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
init in class javax.servlet.GenericServletpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic String getDevelopmentUser()
public UserSettings getUserSettings()
getUserSettings in interface NewsServicepublic ArrayList<EnhancedFeed> getAllUpdateUserFeeds(int feedsNoPerCategory)
getAllUpdateUserFeeds in interface NewsServicepublic ArrayList<EnhancedFeed> getOnlyConnectionsUserFeeds()
getOnlyConnectionsUserFeeds in interface NewsServicepublic EnhancedFeed getSingleFeed(String feedKey)
getSingleFeed in interface NewsServicepublic MoreFeedsBean getMoreFeeds(int start, int quantity)
getMoreFeeds 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<EnhancedFeed> getOnlyMyUserFeeds()
getOnlyMyUserFeeds in interface NewsServicepublic ArrayList<EnhancedFeed> getOnlyLikedFeeds()
getOnlyLikedFeeds in interface NewsServicepublic boolean like(String feedid, String feedText, String feedOwnerId)
like in interface NewsServicepublic org.gcube.portal.databook.shared.Comment comment(String feedid, String commentText, 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 org.gcube.portal.databook.shared.Comment editComment(org.gcube.portal.databook.shared.Comment toEdit)
editComment in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.Like> getAllLikesByFeed(String feedid)
getAllLikesByFeed in interface NewsServicepublic ArrayList<org.gcube.portal.databook.shared.Comment> getAllCommentsByFeed(String feedid)
getAllCommentsByFeed in interface NewsServicepublic boolean deleteComment(String commentid, String feedid)
deleteComment in interface NewsServicepublic boolean deleteFeed(String feedid)
deleteFeed in interface NewsServiceCopyright © 2014. All Rights Reserved.