org.gcube.applicationsupportlayer.social
Class AslNewsManager

java.lang.Object
  extended by org.gcube.applicationsupportlayer.social.AslNewsManager
All Implemented Interfaces:
NewsManager

public class AslNewsManager
extends Object
implements NewsManager

Version:
0.1 Dec 2012 use to share updates from within your application, the update will be published in the Users News Feed belonging to the VRE your application runs into
Author:
Massimiliano Assante, ISTI-CNR

Constructor Summary
AslNewsManager(org.gcube.application.framework.core.session.ASLSession session)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AslNewsManager

public AslNewsManager(org.gcube.application.framework.core.session.ASLSession session)
Parameters:
session - the ASLSession instance
Method Detail

shareApplicationUpdate

public boolean shareApplicationUpdate(Class<?> applicationClass,
                                      String description)
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 application
description - add a description for the update you are sharing
Returns:
true if the update is correctly delivered, false otherwise

shareApplicationUpdate

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

Specified by:
shareApplicationUpdate in interface NewsManager
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

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 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.