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) |
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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init()
init
in class javax.servlet.GenericServlet
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public UserSettings getUserSettings()
getUserSettings
in interface NewsService
public ArrayList<EnhancedFeed> getAllUpdateUserFeeds(int feedsNoPerCategory)
getAllUpdateUserFeeds
in interface NewsService
public ArrayList<EnhancedFeed> getOnlyConnectionsUserFeeds()
getOnlyConnectionsUserFeeds
in interface NewsService
public EnhancedFeed getSingleFeed(String feedKey)
getSingleFeed
in interface NewsService
public ArrayList<EnhancedFeed> getOnlyMyUserFeeds()
getOnlyMyUserFeeds
in interface NewsService
public ArrayList<EnhancedFeed> getOnlyLikedFeeds()
getOnlyLikedFeeds
in interface NewsService
public boolean like(String feedid, String feedText, String feedOwnerId)
like
in interface NewsService
public org.gcube.portal.databook.shared.Comment comment(String feedid, String commentText, String feedOwnerId, boolean isAppFeed)
comment
in interface NewsService
feedid
- 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 NewsService
public ArrayList<org.gcube.portal.databook.shared.Like> getAllLikesByFeed(String feedid)
getAllLikesByFeed
in interface NewsService
public ArrayList<org.gcube.portal.databook.shared.Comment> getAllCommentsByFeed(String feedid)
getAllCommentsByFeed
in interface NewsService
public boolean deleteComment(String commentid, String feedid)
deleteComment
in interface NewsService
public boolean deleteFeed(String feedid)
deleteFeed
in interface NewsService
Copyright © 2014. All Rights Reserved.