public class NotificationsProducer extends Object
Modifier and Type | Field and Description |
---|---|
protected org.gcube.application.framework.core.session.ASLSession |
aslSession |
protected static org.apache.log4j.Logger |
logger |
protected org.gcube.applicationsupportlayer.social.NotificationsManager |
notificationsMng |
protected org.gcube.common.scope.impl.ScopeBean |
scope |
protected String |
userId |
Constructor and Description |
---|
NotificationsProducer(org.gcube.application.framework.core.session.ASLSession aslSession) |
Modifier and Type | Method and Description |
---|---|
org.gcube.application.framework.core.session.ASLSession |
getAslSession() |
org.gcube.applicationsupportlayer.social.NotificationsManager |
getNotificationsMng() |
static void |
main(String[] args) |
void |
notifyAddedItemToSharing(List<InfoContactModel> listContacts,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifyAddedUsersToSharing(List<InfoContactModel> listSharedContact,
List<InfoContactModel> listSharingContact,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the new contacts passed in input
|
void |
notifyFolderRenamed(List<InfoContactModel> listSharedContact,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem folderItem,
String itemOldName,
String itemNewName,
String idsharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifyFolderSharing(List<InfoContactModel> listContacts,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifyFolderUnSharing(List<InfoContactModel> listContacts,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder unSharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifyItemRenamed(List<InfoContactModel> listSharedContact,
String previousName,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifyMovedItemToSharing(List<InfoContactModel> listContacts,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifyRemovedItemToSharing(List<InfoContactModel> listContacts,
String itemName,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
notifySharedFolderDeleted(List<InfoContactModel> listContacts,
String folderNameDeleted)
Runs a new thread to notify the contacts passed in input
|
void |
notifyUpdatedItemToSharing(List<InfoContactModel> listContacts,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input
|
void |
setNotificationMng(org.gcube.applicationsupportlayer.social.NotificationsManager notificationMng) |
protected org.gcube.common.scope.impl.ScopeBean scope
protected static org.apache.log4j.Logger logger
protected org.gcube.applicationsupportlayer.social.NotificationsManager notificationsMng
protected org.gcube.application.framework.core.session.ASLSession aslSession
protected String userId
public NotificationsProducer(org.gcube.application.framework.core.session.ASLSession aslSession)
aslSession
- public org.gcube.applicationsupportlayer.social.NotificationsManager getNotificationsMng()
public void setNotificationMng(org.gcube.applicationsupportlayer.social.NotificationsManager notificationMng)
public org.gcube.application.framework.core.session.ASLSession getAslSession()
public void notifyFolderSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- sharedFolder
- public void notifyFolderRenamed(List<InfoContactModel> listSharedContact, org.gcube.common.homelibrary.home.workspace.WorkspaceItem folderItem, String itemOldName, String itemNewName, String idsharedFolder)
folderItem
- listContacts
- sharedFolder
- public void notifyItemRenamed(List<InfoContactModel> listSharedContact, String previousName, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- sharedFolder
- public void notifyAddedUsersToSharing(List<InfoContactModel> listSharedContact, List<InfoContactModel> listSharingContact, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listSharedContact
- - list of contacts already sharedlistSharingContact
- - list of "new" contacts witch sharesharedFolder
- - the shared folderpublic void notifyFolderUnSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder unSharedFolder)
listContacts
- unSharedFolder
- public void notifyAddedItemToSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- workspaceItem
- public void notifyUpdatedItemToSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- workspaceItem
- public void notifyMovedItemToSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- sharedFolder
- public void notifyRemovedItemToSharing(List<InfoContactModel> listContacts, String itemName, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- sharedFolder
- public void notifySharedFolderDeleted(List<InfoContactModel> listContacts, String folderNameDeleted)
listContacts
- unSharedFolder
- Copyright © 2015. All Rights Reserved.