2012-12-07 17:43:49 +01:00
|
|
|
package org.gcube.applicationsupportlayer.social;
|
2012-12-07 17:47:02 +01:00
|
|
|
|
|
|
|
import org.gcube.application.framework.core.session.ASLSession;
|
|
|
|
import org.gcube.common.core.utils.logging.GCUBEClientLog;
|
|
|
|
import org.gcube.portal.databook.server.DatabookStore;
|
|
|
|
|
2012-12-07 17:43:49 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR
|
|
|
|
* @version 0.1 Dec 2012
|
|
|
|
*
|
2012-12-07 18:05:51 +01:00
|
|
|
* 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
|
2012-12-07 17:43:49 +01:00
|
|
|
*/
|
2012-12-07 17:47:02 +01:00
|
|
|
public class AslNewsManager implements NewsManager {
|
|
|
|
|
|
|
|
GCUBEClientLog log = new GCUBEClientLog(AslNewsManager.class);
|
|
|
|
|
|
|
|
private ASLSession session;
|
|
|
|
private DatabookStore store;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param session the ASLSession instance
|
|
|
|
*/
|
|
|
|
public AslNewsManager(ASLSession session) {
|
|
|
|
this.session = session;
|
|
|
|
}
|
2012-12-07 18:05:51 +01:00
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean shareApplicationUpdate(Class<?> applicationClass, String description) {
|
|
|
|
return true;
|
|
|
|
}
|
2012-12-07 17:43:49 +01:00
|
|
|
/**
|
2012-12-07 18:02:20 +01:00
|
|
|
* {@inheritDoc}
|
2012-12-07 17:43:49 +01:00
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean shareApplicationUpdate(Class<?> applicationClass, String description, String uri) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
/**
|
2012-12-07 18:02:20 +01:00
|
|
|
* {@inheritDoc}
|
2012-12-07 17:43:49 +01:00
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean shareApplicationUpdate(Class<?> applicationClass, String description, String uri, String previewTitle, String previewDescription, String previewThumbnailUrl) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-12-07 18:05:51 +01:00
|
|
|
|
2012-12-07 17:43:49 +01:00
|
|
|
}
|