2012-12-07 17:36:18 +01:00
|
|
|
package org.gcube.applicationsupportlayer.social;
|
|
|
|
|
2012-12-08 19:49:21 +01:00
|
|
|
|
2012-12-07 17:36:18 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR
|
|
|
|
* @version 0.1 Dec 2012
|
|
|
|
*
|
|
|
|
*/
|
2012-12-07 17:47:02 +01:00
|
|
|
public interface NewsManager {
|
2012-12-07 17:36:18 +01:00
|
|
|
/**
|
2012-12-07 17:43:49 +01:00
|
|
|
* use to share an update from your application
|
2012-12-07 17:36:18 +01:00
|
|
|
*
|
|
|
|
* @param applicationClass your servlet class name will be used ad unique identifier for your application
|
|
|
|
* @param description add a description for the update you are sharing
|
|
|
|
* @param uri the link to which the subject of this update is available
|
2012-12-07 18:05:51 +01:00
|
|
|
* @return true if the update is correctly delivered, false otherwise
|
|
|
|
*/
|
2012-12-08 19:49:21 +01:00
|
|
|
boolean shareApplicationUpdate(String description);
|
2012-12-07 18:05:51 +01:00
|
|
|
/**
|
|
|
|
* use to share an update from your application with a reference to the news subject
|
|
|
|
*
|
|
|
|
* @param description add a description for the update you are sharing
|
2012-12-13 16:43:42 +01:00
|
|
|
* @param uriParams the additional parameteres your application needs to open the subject of this update e.g. id=12345&type=foo
|
2012-12-07 17:36:18 +01:00
|
|
|
* @return true if the update is correctly delivered, false otherwise
|
|
|
|
*/
|
2012-12-13 16:43:42 +01:00
|
|
|
boolean shareApplicationUpdate(String description, String uriGETparams);
|
2012-12-07 17:36:18 +01:00
|
|
|
/**
|
2012-12-07 17:43:49 +01:00
|
|
|
* use to share an update from your application with a link preview
|
2012-12-07 17:36:18 +01:00
|
|
|
*
|
|
|
|
* @param applicationClass your servlet class name will be used ad unique identifier for your application with a link preview
|
|
|
|
* @param description add a description for the update you are sharing
|
2012-12-13 16:43:42 +01:00
|
|
|
* @param uriParams the additional parameteres your application needs to open the subject of this update e.g. id=12345&type=foo
|
2012-12-07 17:36:18 +01:00
|
|
|
* @param previewTitle the title to show in the preview
|
|
|
|
* @param previewDescription the description to show in the preview
|
|
|
|
* @param previewThumbnailUrl the image url to show in the preview
|
|
|
|
* @return true if the update is correctly delivered, false otherwise
|
|
|
|
*/
|
2012-12-13 16:43:42 +01:00
|
|
|
boolean shareApplicationUpdate(String description, String uriGETparams, String previewTitle, String previewDescription, String previewThumbnailUrl);
|
2012-12-07 17:36:18 +01:00
|
|
|
}
|