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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String TEST_USER
public static final String UPLOAD_DIR
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 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 ShareUpdateService
public 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 ShareUpdateService
public UserSettings getUserSettings()
getUserSettings
in interface ShareUpdateService
public LinkPreview checkUploadedFile(String fileName, String fileabsolutePathOnServer)
checkUploadedFile
in interface ShareUpdateService
public LinkPreview checkLink(String linkToCheck)
checkLink
in interface ShareUpdateService
public 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 ShareUpdateService
public ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getHashtags()
getHashtags
in interface ShareUpdateService
public 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.