refactoring
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@62326 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3f19faca54
commit
bfdf6330d9
|
@ -133,7 +133,16 @@ public class ApplicationNewsManager extends SocialPortalBridge implements NewsMa
|
|||
public boolean shareApplicationUpdate(String feedText, String uriParams, String previewTitle, String previewDescription, String 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) {
|
||||
String descToAdd = escapeHtml(description);
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessa
|
|||
* @version 0.1 Dec 2012
|
||||
*
|
||||
*/
|
||||
public interface NotificationManager {
|
||||
public interface NotificationsManager {
|
||||
/**
|
||||
* use to notify a user he got a workspace folder shared
|
||||
*
|
|
@ -13,9 +13,9 @@ import org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessa
|
|||
*
|
||||
* 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);
|
||||
}
|
||||
/**
|
Loading…
Reference in New Issue