org.gcube.applicationsupportlayer.social
Interface NewsManager

All Known Implementing Classes:
AslNewsManager

public interface NewsManager

Version:
0.1 Dec 2012
Author:
Massimiliano Assante, ISTI-CNR

Method Summary
 boolean shareApplicationUpdate(Class<?> applicationClass, String description)
          use to share an update from your application
 boolean shareApplicationUpdate(Class<?> applicationClass, String description, String uri)
          use to share an update from your application with a reference to the news subject
 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
 

Method Detail

shareApplicationUpdate

boolean shareApplicationUpdate(Class<?> applicationClass,
                               String description)
use to share an update from your application

Parameters:
applicationClass - your servlet class name will be used ad unique identifier for your application
description - add a description for the update you are sharing
uri - the link to which the subject of this update is available
Returns:
true if the update is correctly delivered, false otherwise

shareApplicationUpdate

boolean shareApplicationUpdate(Class<?> applicationClass,
                               String description,
                               String uri)
use to share an update from your application with a reference to the news subject

Parameters:
applicationClass - your servlet class name will be used ad unique identifier for your application
description - add a description for the update you are sharing
uri - the link to which the subject of this update is available
Returns:
true if the update is correctly delivered, false otherwise

shareApplicationUpdate

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

Parameters:
applicationClass - your servlet class name will be used ad unique identifier for your application with a link preview
description - add a description for the update you are sharing
uri - the link to which the subject of this update is available
previewTitle - the title to show in the preview
previewDescription - the description to show in the preview
previewThumbnailUrl - the image url to show in the preview
Returns:
true if the update is correctly delivered, false otherwise


Copyright © 2012. All Rights Reserved.