2022-05-04 11:26:41 +02:00
|
|
|
package org.gcube.social_networking.socialnetworking.model.beans.workspace;
|
|
|
|
|
|
|
|
public enum WorkspaceEventType {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* use to notify a user she got a workspace item new in some of her workspace shared folder
|
|
|
|
*/
|
|
|
|
ITEM_NEW(AddedItemEvent.class),
|
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder shared
|
|
|
|
*/
|
|
|
|
FOLDER_SHARE(SharedFolderEvent.class),
|
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder Unshared
|
|
|
|
*/
|
2022-05-04 16:35:59 +02:00
|
|
|
FOLDER_UNSHARE(UnsharedFolderEvent.class),
|
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder renamed
|
|
|
|
*/
|
|
|
|
FOLDER_RENAME(RenamedFolderEvent.class);
|
2022-05-04 11:26:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Class<? extends WorkspaceEvent> beanClass;
|
|
|
|
|
|
|
|
WorkspaceEventType(Class<? extends WorkspaceEvent> beanClass){
|
|
|
|
this.beanClass = beanClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Class<? extends WorkspaceEvent> getNotificationClass(){
|
|
|
|
return this.beanClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|