| Package | Description |
|---|---|
| org.gcube.portlets.user.shareupdates.client | |
| org.gcube.portlets.user.shareupdates.client.view | |
| org.gcube.portlets.user.shareupdates.server |
| Modifier and Type | Method and Description |
|---|---|
LinkPreview |
ShareUpdateService.checkLink(String linkToCheck) |
LinkPreview |
ShareUpdateService.checkUploadedFile(String fileName,
String fileabsolutePathOnServer) |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.portal.databook.shared.ClientFeed |
ShareUpdateService.sharePostWithLinkPreview(String feedText,
org.gcube.portal.databook.shared.FeedType type,
org.gcube.portal.databook.shared.PrivacyLevel pLevel,
Long vreOrgId,
LinkPreview preview,
String urlThumbnail,
ArrayList<MentionedDTO> mentionedUsers,
boolean notifyGroup) |
void |
ShareUpdateServiceAsync.sharePostWithLinkPreview(String feedText,
org.gcube.portal.databook.shared.FeedType type,
org.gcube.portal.databook.shared.PrivacyLevel pLevel,
Long vreOrgId,
LinkPreview preview,
String urlThumbnail,
ArrayList<MentionedDTO> mentionedUsers,
boolean notifyGroup,
com.google.gwt.user.client.rpc.AsyncCallback<org.gcube.portal.databook.shared.ClientFeed> callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
ShareUpdateServiceAsync.checkLink(String linkToCheck,
com.google.gwt.user.client.rpc.AsyncCallback<LinkPreview> callback) |
void |
ShareUpdateServiceAsync.checkUploadedFile(String fileName,
String fileabsolutePathOnServer,
com.google.gwt.user.client.rpc.AsyncCallback<LinkPreview> callback) |
| Constructor and Description |
|---|
LinkPreviewer(ShareUpdateForm parent,
LinkPreview toShow) |
| Modifier and Type | Method and Description |
|---|---|
LinkPreview |
ShareUpdateServiceImpl.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)
|
LinkPreview |
ShareUpdateServiceImpl.checkUploadedFile(String fileName,
String fileabsolutePathOnServer)
generate a preview of the file, upload the file on the storage and shorts the link
|
protected static LinkPreview |
FilePreviewer.getImagePreview(String fileName,
String path2Image,
String httpUrl,
String mimeType,
String context) |
protected static LinkPreview |
TextTransfromUtils.getInfoFromHTML(URLConnection connection,
URL pageUrl,
String link,
String host)
to use when OpenGraph is not available, Tries Metadata first, then Best guess from page content
|
protected static LinkPreview |
FilePreviewer.getPdfPreview(String fileName,
String path2Pdf,
String httpUrl,
String mimeType,
String context) |
protected static LinkPreview |
FilePreviewer.getUnhandledTypePreview(String fileName,
String path2Pdf,
String httpUrl,
String mimeType,
String context) |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.portal.databook.shared.ClientFeed |
ShareUpdateServiceImpl.sharePostWithLinkPreview(String postText,
org.gcube.portal.databook.shared.FeedType feedType,
org.gcube.portal.databook.shared.PrivacyLevel pLevel,
Long vreOrgId,
LinkPreview preview,
String urlThumbnail,
ArrayList<MentionedDTO> mentionedItems,
boolean notifyGroup)
Share post that could contain a link preview.
|
Copyright © 2022. All rights reserved.