org.gcube.applicationsupportlayer.social
Class AslNewsManager
java.lang.Object
org.gcube.applicationsupportlayer.social.AslNewsManager
- All Implemented Interfaces:
- NewsManager
public class AslNewsManager
- extends Object
- implements NewsManager
- Version:
- 0.1 Dec 2012
- Author:
- Massimiliano Assante, ISTI-CNR
|
Constructor Summary |
AslNewsManager(org.gcube.application.framework.core.session.ASLSession session)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AslNewsManager
public AslNewsManager(org.gcube.application.framework.core.session.ASLSession session)
- Parameters:
session - the ASLSession instance
shareApplicationUpdate
public boolean shareApplicationUpdate(Class<?> applicationClass,
String description,
String uri)
- use to share an update from your application
- Specified by:
shareApplicationUpdate in interface NewsManager
- Parameters:
applicationClass - your servlet class name will be used ad unique identifier for your applicationdescription - add a description for the update you are sharinguri - the link to which the subject of this update is available
- Returns:
- true if the update is correctly delivered, false otherwise
shareApplicationUpdate
public boolean shareApplicationUpdate(Class<?> applicationClass,
String description,
String uri,
String previewTitle,
String previewDescription,
String previewThumbnailUrl)
- use to share an update from your application with a link preview
- Specified by:
shareApplicationUpdate in interface NewsManager
- Parameters:
applicationClass - your servlet class name will be used ad unique identifier for your application with a link previewdescription - add a description for the update you are sharinguri - the link to which the subject of this update is availablepreviewTitle - the title to show in the previewpreviewDescription - the description to show in the previewpreviewThumbnailUrl - the image url to show in the preview
- Returns:
- true if the update is correctly delivered, false otherwise
Copyright © 2012. All Rights Reserved.