Massimiliano Assante 2012-12-13 22:20:29 +00:00
parent 3f19faca54
commit bfdf6330d9
3 changed files with 13 additions and 4 deletions

View File

@ -133,7 +133,16 @@ public class ApplicationNewsManager extends SocialPortalBridge implements NewsMa
public boolean shareApplicationUpdate(String feedText, String uriParams, String previewTitle, String previewDescription, String previewThumbnailUrl) { public boolean shareApplicationUpdate(String feedText, String uriParams, String previewTitle, String previewDescription, String previewThumbnailUrl) {
return getStoreInstance().saveAppFeed(buildFeed(feedText, uriParams, previewTitle, previewDescription, previewThumbnailUrl)); return getStoreInstance().saveAppFeed(buildFeed(feedText, uriParams, previewTitle, previewDescription, previewThumbnailUrl));
} }
/**
* buid a an Application Feed
*
* @param description add a description for the update you are sharing
* @param uriParams the additional parameteres your application needs to open the subject of this update e.g. id=12345&type=foo
* @param previewTitle the title to show in the preview
* @param previewDescription the description to show in the preview
* @param previewThumbnailUrl the image url to show in the preview
* @return a feed instance ready to be written
*/
private Feed buildFeed(String description, String uriParams, String previewTitle, String previewDescription, String previewThumbnailUrl) { private Feed buildFeed(String description, String uriParams, String previewTitle, String previewDescription, String previewThumbnailUrl) {
String descToAdd = escapeHtml(description); String descToAdd = escapeHtml(description);

View File

@ -11,7 +11,7 @@ import org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessa
* @version 0.1 Dec 2012 * @version 0.1 Dec 2012
* *
*/ */
public interface NotificationManager { public interface NotificationsManager {
/** /**
* use to notify a user he got a workspace folder shared * use to notify a user he got a workspace folder shared
* *

View File

@ -13,9 +13,9 @@ import org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessa
* *
* use to notify users from within your application * use to notify users from within your application
*/ */
public class AslNotificationManager extends SocialPortalBridge implements NotificationManager { public class UserNotificationsManager extends SocialPortalBridge implements NotificationsManager {
public AslNotificationManager(ASLSession session) { public UserNotificationsManager(ASLSession session) {
super(session); super(session);
} }
/** /**