git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@62117 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
560c63f94a
commit
6cadef900a
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue