public class ShareUpdateServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ShareUpdateService
| Modifier and Type | Field and Description |
|---|---|
static String |
UPLOAD_DIR |
| Constructor and Description |
|---|
ShareUpdateServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
LinkPreview |
checkLink(String linkToCheck)
tries the following in the indicated order for Populating the Link preview
Open Graph protocol
Meta "title" and "description" tags
Best guess from page content (not recommended)
Schema.org microdata <-- This is still a TODO
|
LinkPreview |
checkUploadedFile(String fileName,
String fileabsolutePathOnServer)
generate a preview of the file, upload the file on the storage and shorts the link
|
void |
destroy() |
String |
extractURL(String feedText)
utilty method that extract an url ina text
|
ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> |
getPortalUsers() |
ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> |
getSelectedUserIds(ArrayList<String> fullNames) |
UserSettings |
getUserSettings() |
void |
init()
connect to cassandra at startup
|
org.gcube.portal.databook.shared.ClientFeed |
share(String postText,
org.gcube.portal.databook.shared.FeedType feedType,
org.gcube.portal.databook.shared.PrivacyLevel pLevel,
String vreId,
String linkTitle,
String linkDesc,
String url,
String urlThumbnail,
String host,
ArrayList<String> mentionedUserFullNames) |
String |
transformUrls(String feedText)
utilty method that convert a url ina text in a clickable url by the browser
and if the user has just pasted a link, converts the link in: shared a link
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String UPLOAD_DIR
public void init()
init in class javax.servlet.GenericServletpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic org.gcube.portal.databook.shared.ClientFeed share(String postText, org.gcube.portal.databook.shared.FeedType feedType, org.gcube.portal.databook.shared.PrivacyLevel pLevel, String vreId, String linkTitle, String linkDesc, String url, String urlThumbnail, String host, ArrayList<String> mentionedUserFullNames)
share in interface ShareUpdateServicepublic String transformUrls(String feedText)
feedText - public UserSettings getUserSettings()
getUserSettings in interface ShareUpdateServicepublic LinkPreview checkUploadedFile(String fileName, String fileabsolutePathOnServer)
checkUploadedFile in interface ShareUpdateServicepublic String extractURL(String feedText)
feedText - public LinkPreview checkLink(String linkToCheck)
checkLink in interface ShareUpdateServicepublic ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> getSelectedUserIds(ArrayList<String> fullNames)
public ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> getPortalUsers()
getPortalUsers in interface ShareUpdateServiceCopyright © 2014. All Rights Reserved.