aslsocial/src/main/java/org/gcube/applicationsupportlayer/social/UserNotificationsManager.java

95 lines
2.2 KiB
Java

package org.gcube.applicationsupportlayer.social;
import org.gcube.application.framework.core.session.ASLSession;
import org.gcube.portal.databook.shared.Comment;
import org.gcube.portal.databook.shared.Feed;
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder;
import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem;
import org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessage;
/**
*
* @author Massimiliano Assante, ISTI-CNR
* @version 0.1 Dec 2012
*
* use to notify users from within your application
*/
public class UserNotificationsManager extends SocialPortalBridge implements NotificationsManager {
public UserNotificationsManager(ASLSession session) {
super(session);
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyFolderSharing(String userIdToNotify, WorkspaceFolder sharedFolder) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyFolderAddedUser(String userIdToNotify, WorkspaceFolder sharedFolder, String newAddedUserId) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyFolderRemovedUser(String userIdToNotify, WorkspaceFolder sharedFolder, String removedUserId) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyAddedItem(String userIdToNotify, WorkspaceItem newItem) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyRemovedItem(String userIdToNotify, WorkspaceItem removedItem) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyUpdatedItem(String userIdToNotify, WorkspaceItem updatedItem) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyMessageReceived(String userIdToNotify, WorkspaceMessage message) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyOwnCommentReply(String userIdToNotify, Comment comment) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyCommentReply(String userIdToNotify, Comment comment) {
return true;
}
/**
* {@inheritDoc}
*/
@Override
public boolean notifyLikedFeed(String userIdToNotify, Feed likedFeed) {
return true;
}
}