Uses of Class org.gcube.portlets.user.shareupdates.shared.LinkPreview (gCube Share Updates Portlet 1.7.0-3.7.0 API)
Date: 2015-05-19

## Uses of Class
org.gcube.portlets.user.shareupdates.shared.LinkPreview

- Packages that use LinkPreview
  Package | Description
  --- | ---
  org.gcube.portlets.user.shareupdates.client |
  org.gcube.portlets.user.shareupdates.client.view |
  org.gcube.portlets.user.shareupdates.server |

- - ### Uses of LinkPreview in org.gcube.portlets.user.shareupdates.client

    Methods in org.gcube.portlets.user.shareupdates.client that return LinkPreview
    Modifier and Type | Method and Description
    --- | ---
    `LinkPreview` | ShareUpdateService.`checkLink(String linkToCheck)`
    `LinkPreview` | ShareUpdateService.`checkUploadedFile(String fileName, String fileabsolutePathOnServer)`

    Methods in org.gcube.portlets.user.shareupdates.client with parameters of type LinkPreview
    Modifier and Type | Method and Description
    --- | ---
    `org.gcube.portal.databook.shared.ClientFeed` | ShareUpdateService.`share(String feedText, org.gcube.portal.databook.shared.FeedType type, org.gcube.portal.databook.shared.PrivacyLevel pLevel, String vreName, LinkPreview preview, String urlThumbnail, ArrayList<String> mentionedUsers, String fileName, String FilePathOnServer, boolean notifyGroup)`
    `void` | ShareUpdateServiceAsync.`share(String feedText, org.gcube.portal.databook.shared.FeedType type, org.gcube.portal.databook.shared.PrivacyLevel pLevel, String vreName, LinkPreview preview, String urlThumbnail, ArrayList<String> mentionedUsers, String fileName, String FilePathOnServer, boolean notifyGroup, com.google.gwt.user.client.rpc.AsyncCallback<org.gcube.portal.databook.shared.ClientFeed> callback)`

    Method parameters in org.gcube.portlets.user.shareupdates.client with type arguments of type LinkPreview
    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)`

  - ### Uses of LinkPreview in org.gcube.portlets.user.shareupdates.client.view

    Constructors in org.gcube.portlets.user.shareupdates.client.view with parameters of type LinkPreview
    Constructor and Description
    `LinkPreviewer(ShareUpdateForm parent, LinkPreview toShow, boolean isFilePreview)`

  - ### Uses of LinkPreview in org.gcube.portlets.user.shareupdates.server

    Methods in org.gcube.portlets.user.shareupdates.server that return LinkPreview
    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) Schema.org microdata <-- This is still a TODO
    `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)`
    `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)`
    `protected static LinkPreview` | FilePreviewer.`getUnhandledTypePreview(String fileName, String path2Pdf, String httpUrl, String mimeType)`

    Methods in org.gcube.portlets.user.shareupdates.server with parameters of type LinkPreview
    Modifier and Type | Method and Description
    --- | ---
    `org.gcube.portal.databook.shared.ClientFeed` | ShareUpdateServiceImpl.`share(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, String fileName, String filePathOnServer, boolean notifyGroup)`

Copyright © 2015. All Rights Reserved.