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,
ArrayList<String> mentionedUserFullNames,
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()
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, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, 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 String getDevelopmentUser()
public UserSettings getUserSettings()
getUserSettings
in interface NewsService
public ArrayList<EnhancedFeed> getAllUpdateUserFeeds(int feedsNoPerCategory)
getAllUpdateUserFeeds
in interface NewsService
public ArrayList<EnhancedFeed> getFeedsByHashtag(String hashtag)
getFeedsByHashtag
in interface NewsService
hashtag
- the hashtag to look for including '#'public ArrayList<EnhancedFeed> getOnlyConnectionsUserFeeds()
getOnlyConnectionsUserFeeds
in interface NewsService
public EnhancedFeed getSingleFeed(String feedKey)
getSingleFeed
in interface NewsService
public MoreFeedsBean getMoreFeeds(int start, int quantity)
getMoreFeeds
in interface NewsService
strat
- 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 NewsService
public ArrayList<EnhancedFeed> getOnlyLikedFeeds()
getOnlyLikedFeeds
in interface NewsService
public boolean like(String feedid, String feedText, String feedOwnerId)
like
in interface NewsService
public boolean unlike(String feedid, String feedText, String feedOwnerId)
unlike
in interface NewsService
public org.gcube.portal.databook.shared.Comment comment(String feedid, String commentText, ArrayList<String> mentionedUserFullNames, 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
public ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getOrganizationUsers(String currentScope)
getOrganizationUsers
in interface NewsService
public ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getSelectedUserIds(ArrayList<String> fullNames)
Copyright © 2015. All Rights Reserved.