public class ShareUpdateServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ShareUpdateService
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_USER |
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 |
getDevelopmentUser() |
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getHashtags() |
static ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getOrganizationUsers(String scope,
String currUser,
boolean withinPortal) |
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getPortalUsers() |
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getSelectedUserIds(ArrayList<String> fullNames) |
UserSettings |
getUserSettings() |
void |
init()
connect to cassandra at startup
|
org.gcube.portal.databook.shared.ClientFeed |
sharePostWithAttachments(String feedText,
org.gcube.portal.databook.shared.FeedType feedType,
org.gcube.portal.databook.shared.PrivacyLevel pLevel,
String vreId,
ArrayList<UploadedFile> uploadedFiles,
ArrayList<String> mentionedUserFullNames,
boolean notifyGroup,
boolean saveCopyWokspace)
Share a post with at least one attachment.
|
org.gcube.portal.databook.shared.ClientFeed |
sharePostWithLinkPreview(String postText,
org.gcube.portal.databook.shared.FeedType feedType,
org.gcube.portal.databook.shared.PrivacyLevel pLevel,
String vreId,
LinkPreview preview,
String urlThumbnail,
ArrayList<String> mentionedUserFullNames,
boolean notifyGroup)
Share post that could contain a link preview.
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String TEST_USER
public 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 String getDevelopmentUser()
public org.gcube.portal.databook.shared.ClientFeed sharePostWithLinkPreview(String postText, org.gcube.portal.databook.shared.FeedType feedType, org.gcube.portal.databook.shared.PrivacyLevel pLevel, String vreId, LinkPreview preview, String urlThumbnail, ArrayList<String> mentionedUserFullNames, boolean notifyGroup)
sharePostWithLinkPreview in interface ShareUpdateServicepublic org.gcube.portal.databook.shared.ClientFeed sharePostWithAttachments(String feedText, org.gcube.portal.databook.shared.FeedType feedType, org.gcube.portal.databook.shared.PrivacyLevel pLevel, String vreId, ArrayList<UploadedFile> uploadedFiles, ArrayList<String> mentionedUserFullNames, boolean notifyGroup, boolean saveCopyWokspace)
sharePostWithAttachments in interface ShareUpdateServicepublic UserSettings getUserSettings()
getUserSettings in interface ShareUpdateServicepublic LinkPreview checkUploadedFile(String fileName, String fileabsolutePathOnServer)
checkUploadedFile in interface ShareUpdateServicepublic LinkPreview checkLink(String linkToCheck)
checkLink in interface ShareUpdateServicepublic ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getSelectedUserIds(ArrayList<String> fullNames)
public ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getPortalUsers()
getPortalUsers in interface ShareUpdateServicepublic ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getHashtags()
getHashtags in interface ShareUpdateServicepublic static ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getOrganizationUsers(String scope, String currUser, boolean withinPortal)
session - the Asl SessionwithinPortal - true when is on Liferay portalCopyright © 2016. All Rights Reserved.