public class ApplicationNewsManager extends SocialPortalBridge implements NewsManager
applicationProfile, aslSession
Constructor and Description |
---|
ApplicationNewsManager(org.gcube.application.framework.core.session.ASLSession session,
String portletClassName) |
Modifier and Type | Method and Description |
---|---|
boolean |
shareApplicationUpdate(String feedText)
use to share an update from your application
|
boolean |
shareApplicationUpdate(String feedText,
String uriParams)
use to share an update from your application with a reference to the news object
|
boolean |
shareApplicationUpdate(String feedText,
String uriParams,
String previewTitle,
String previewDescription,
InputStream previewThumbnailInputStream,
org.gcube.portal.databook.shared.ImageType imageExtension)
use to share an update from your application with a reference to the news object and with a link preview passing its input stream
|
boolean |
shareApplicationUpdate(String feedText,
String uriParams,
String previewTitle,
String previewDescription,
String previewThumbnailUrl)
use to share an update from your application with a reference to the news object and with a link preview
|
escapeHtml, getApplicationProfile, getScopeByOrganizationId, getStoreInstance
public ApplicationNewsManager(org.gcube.application.framework.core.session.ASLSession session, String portletClassName)
aslSession
- the ASLSession instanceportletClassName
- your portlet class name will be used ad unique identifier for your applicationProfilepublic boolean shareApplicationUpdate(String feedText)
shareApplicationUpdate
in interface NewsManager
feedText
- add a description for the update you are sharingpublic boolean shareApplicationUpdate(String feedText, String uriParams)
shareApplicationUpdate
in interface NewsManager
feedText
- description for the update you are sharinguriParams
- additional parameters if your application supports the direct opening of of this update's object e.g. id=12345&type=foopublic boolean shareApplicationUpdate(String feedText, String uriParams, String previewTitle, String previewDescription, String previewThumbnailUrl)
shareApplicationUpdate
in interface NewsManager
feedText
- add a description for the update you are sharinguriParams
- additional parameters if your application supports the direct opening of of this update's object e.g. id=12345&type=foopreviewTitle
- the title to show in the previewpreviewDescription
- the description to show in the previewpreviewThumbnailUrl
- the image url to show in the previewpublic boolean shareApplicationUpdate(String feedText, String uriParams, String previewTitle, String previewDescription, InputStream previewThumbnailInputStream, org.gcube.portal.databook.shared.ImageType imageExtension)
shareApplicationUpdate
in interface NewsManager
feedText
- add a description for the update you are sharinguriParams
- additional parameters if your application supports the direct opening of of this update's object e.g. id=12345&type=foopreviewTitle
- the title to show in the previewpreviewDescription
- the description to show in the previewpreviewThumbnailInputStream
- the image url Input Stream to show in the previewimageExtension
- the image ExtensionCopyright © 2016. All Rights Reserved.