public class NewsServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements NewsService
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_SCOPE |
| Constructor and Description |
|---|
NewsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
OperationResult |
comment(String feedid,
String commentText,
HashSet<String> mentionedUserFullNames,
String feedOwnerId,
boolean isAppFeed) |
boolean |
deleteComment(String commentid,
String feedid) |
boolean |
deleteFeed(String feedid) |
void |
destroy() |
OperationResult |
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()
when packaging test will fail if the user is not set to test.user
|
ArrayList<EnhancedFeed> |
getFeedsByHashtag(String hashtag)
return the feeds having the hashtag passed as param the user has access on
|
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() |
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getOrganizationUsers(String currentScope) |
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getSelectedUserIds(ArrayList<String> fullNames) |
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
|
boolean |
unlike(String feedid,
String feedText,
String feedOwnerId) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String TEST_SCOPE
public 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> getFeedsByHashtag(String hashtag)
getFeedsByHashtag in interface NewsServicehashtag - the hashtag to look for including '#'public 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 boolean unlike(String feedid, String feedText, String feedOwnerId)
unlike in interface NewsServicepublic OperationResult comment(String feedid, String commentText, HashSet<String> mentionedUserFullNames, 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> 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 NewsServicepublic ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getOrganizationUsers(String currentScope)
getOrganizationUsers in interface NewsServicepublic ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getSelectedUserIds(ArrayList<String> fullNames)
Copyright © 2015. All Rights Reserved.