Massimiliano Assante 2012-12-07 17:05:51 +00:00
parent 560c63f94a
commit 6cadef900a
2 changed files with 18 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import org.gcube.portal.databook.server.DatabookStore;
* @author Massimiliano Assante, ISTI-CNR
* @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
*/
public class AslNewsManager implements NewsManager {
@ -23,7 +24,13 @@ public class AslNewsManager implements NewsManager {
public AslNewsManager(ASLSession session) {
this.session = session;
}
/**
* {@inheritDoc}
*/
@Override
public boolean shareApplicationUpdate(Class<?> applicationClass, String description) {
return true;
}
/**
* {@inheritDoc}
*/
@ -39,4 +46,5 @@ public class AslNewsManager implements NewsManager {
return true;
}
}

View File

@ -16,6 +16,15 @@ public interface NewsManager {
* @param uri the link to which the subject of this update is available
* @return true if the update is correctly delivered, false otherwise
*/
boolean shareApplicationUpdate(Class<?> applicationClass, String description);
/**
* use to share an update from your application with a reference to the news subject
*
* @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
* @return true if the update is correctly delivered, false otherwise
*/
boolean shareApplicationUpdate(Class<?> applicationClass, String description, String uri);
/**
* use to share an update from your application with a link preview