social-service-model/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/WorkspaceNotificationType.java

32 lines
790 B
Java
Raw Normal View History

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-05-02 17:54:29 +02:00
ITEM_NEW(WorkspaceNotificationAddedItem.class),
/**
* use to notify a user he got a workspace folder shared
*/
2022-05-02 17:54:29 +02:00
FOLDER_SHARE(WorkspaceNotificationSharedFolder.class),
2022-04-27 18:29:47 +02:00
/**
* use to notify a user he got a workspace folder Unshared
*/
2022-05-02 17:54:29 +02:00
FOLDER_UNSHARE(WorkspaceNotificationUnsharedFolder.class);
2022-04-27 18:29:47 +02:00
2022-05-02 17:54:29 +02:00
Class<? extends WorkspaceNotification> beanClass;
2022-05-02 17:54:29 +02:00
WorkspaceNotificationType(Class<? extends WorkspaceNotification> beanClass){
this.beanClass = beanClass;
}
2022-05-02 17:54:29 +02:00
public Class<? extends WorkspaceNotification> getNotificationClass(){
return this.beanClass;
}
}