diff --git a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java index 007e812..447de18 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java @@ -48,6 +48,8 @@ import org.gcube.social_networking.socialnetworking.model.beans.workspace.Worksp import org.gcube.social_networking.socialnetworking.model.beans.workspace.AddedItemEvent; import org.gcube.social_networking.socialnetworking.model.beans.workspace.DeletedItemEvent; import org.gcube.social_networking.socialnetworking.model.beans.workspace.FolderAddedUserEvent; +import org.gcube.social_networking.socialnetworking.model.beans.workspace.FolderAdminDowngradeEvent; +import org.gcube.social_networking.socialnetworking.model.beans.workspace.FolderAdminUpgradeEvent; import org.gcube.social_networking.socialnetworking.model.beans.workspace.FolderRemovedUserEvent; import org.gcube.social_networking.socialnetworking.model.beans.workspace.RenamedFolderEvent; import org.gcube.social_networking.socialnetworking.model.beans.workspace.SharedFolderEvent; @@ -299,6 +301,14 @@ public class Notifications { RenamedFolderEvent itemBean = (RenamedFolderEvent) event; return nm.notifyFolderRenaming(idToNotify, itemBean.getPreviousName(), itemBean.getNewName(), itemBean.getRenamedFolderId()); } + case FOLDER_ADMIN_UPGRADE: { + FolderAdminUpgradeEvent itemBean = (FolderAdminUpgradeEvent) event; + return nm.notifyAdministratorUpgrade(idToNotify, WorkspaceItemMapper.getSharedFolder(itemBean.getFolder())); + } + case FOLDER_ADMIN_DOWNGRADE: { + FolderAdminDowngradeEvent itemBean = (FolderAdminDowngradeEvent) event; + return nm.notifyAdministratorDowngrade(idToNotify, WorkspaceItemMapper.getSharedFolder(itemBean.getFolder())); + } case FOLDER_ADDEDUSER: { FolderAddedUserEvent itemBean = (FolderAddedUserEvent) event; UserManager userManager = UserManagerWSBuilder.getInstance().getUserManager();