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)
Instantiates a new notifications producer.
|
Modifier and Type | Method and Description |
---|---|
org.gcube.application.framework.core.session.ASLSession |
getAslSession()
Gets the asl session.
|
org.gcube.applicationsupportlayer.social.NotificationsManager |
getNotificationsMng()
Gets the notifications mng.
|
static void |
main(String[] args)
The main method.
|
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 |
notifyAdministratorDowngrade(InfoContactModel userToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input.
|
void |
notifyAdministratorUpgrade(InfoContactModel userToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the contacts passed in input.
|
void |
notifyFolderRemovedUser(InfoContactModel userUnShared,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder shareFolder)
Notify folder removed user.
|
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,
String unShareFolderId,
String unSharedFolderName)
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 |
notifyUpdatedUsersToSharing(List<InfoContactModel> listSharedContact,
List<InfoContactModel> listSharingContact,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Runs a new thread to notify the updated (add/remove) contacts to sharing
|
void |
setNotificationMng(org.gcube.applicationsupportlayer.social.NotificationsManager notificationMng)
Sets the notification mng.
|
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
- the asl sessionpublic org.gcube.applicationsupportlayer.social.NotificationsManager getNotificationsMng()
public void setNotificationMng(org.gcube.applicationsupportlayer.social.NotificationsManager notificationMng)
notificationMng
- the new notification mngpublic org.gcube.application.framework.core.session.ASLSession getAslSession()
public void notifyFolderSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- the list contactssharedFolder
- the shared folderpublic void notifyFolderRenamed(List<InfoContactModel> listSharedContact, org.gcube.common.homelibrary.home.workspace.WorkspaceItem folderItem, String itemOldName, String itemNewName, String idsharedFolder)
listSharedContact
- the list shared contactfolderItem
- the folder itemitemOldName
- the item old nameitemNewName
- the item new nameidsharedFolder
- the idshared folderpublic void notifyItemRenamed(List<InfoContactModel> listSharedContact, String previousName, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listSharedContact
- the list shared contactpreviousName
- the previous nameitem
- the itemsharedFolder
- the shared folderpublic void notifyUpdatedUsersToSharing(List<InfoContactModel> listSharedContact, List<InfoContactModel> listSharingContact, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listSharedContact
- - list of contacts already sharedlistSharingContact
- - list of "new" contacts to sharesharedFolder
- - the shared folderpublic void notifyFolderUnSharing(List<InfoContactModel> listContacts, String unShareFolderId, String unSharedFolderName)
listContacts
- the list contactsunShareFolderId
- the un share folder idunSharedFolderName
- the un shared folder namepublic void notifyFolderRemovedUser(InfoContactModel userUnShared, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder shareFolder)
userUnShared
- the user un sharedunSharedFolder
- the un shared folderpublic void notifyAddedItemToSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- the list contactsworkspaceItem
- the workspace itemsharedFolder
- the shared folderpublic void notifyUpdatedItemToSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- the list contactsworkspaceItem
- the workspace itemsharedFolder
- the shared folderpublic void notifyMovedItemToSharing(List<InfoContactModel> listContacts, org.gcube.common.homelibrary.home.workspace.WorkspaceItem workspaceItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- the list contactsworkspaceItem
- the workspace itemsharedFolder
- the shared folderpublic void notifyRemovedItemToSharing(List<InfoContactModel> listContacts, String itemName, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
listContacts
- the list contactsitemName
- the item namesharedFolder
- the shared folderpublic void notifySharedFolderDeleted(List<InfoContactModel> listContacts, String folderNameDeleted)
listContacts
- the list contactsfolderNameDeleted
- the folder name deletedpublic void notifyAdministratorUpgrade(InfoContactModel userToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
userToNotify
- the user to notifysharedFolder
- the shared folderpublic void notifyAdministratorDowngrade(InfoContactModel userToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
userToNotify
- the user to notifysharedFolder
- the shared folderCopyright © 2016. All Rights Reserved.