2022-04-21 16:25:03 +02:00
|
|
|
package org.gcube.social_networking.socialnetworking.model.beans;
|
|
|
|
|
|
|
|
public enum WorkspaceNotificationType {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* use to notify a user she got a workspace item new in some of her workspace shared folder
|
|
|
|
*/
|
2022-04-27 18:29:47 +02:00
|
|
|
ITEM_NEW(WSAddedItemNotificationBean.class),
|
2022-04-21 16:25:03 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder shared
|
|
|
|
*/
|
2022-04-27 18:29:47 +02:00
|
|
|
FOLDER_SHARE(WSSharedFolderNotificationBean.class),
|
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder Unshared
|
|
|
|
*/
|
|
|
|
FOLDER_UNSHARE(WSUnsharedFolderNotificationBean.class);
|
|
|
|
|
2022-04-21 16:25:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
Class<? extends WorkspaceNotificationBean> beanClass;
|
|
|
|
|
|
|
|
WorkspaceNotificationType(Class<? extends WorkspaceNotificationBean> beanClass){
|
|
|
|
this.beanClass = beanClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Class<? extends WorkspaceNotificationBean> getNotificationClass(){
|
|
|
|
return this.beanClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|