Enum WorkspaceEventType
- java.lang.Object
-
- java.lang.Enum<WorkspaceEventType>
-
- org.gcube.social_networking.socialnetworking.model.beans.workspace.WorkspaceEventType
-
- All Implemented Interfaces:
Serializable,Comparable<WorkspaceEventType>
public enum WorkspaceEventType extends Enum<WorkspaceEventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOLDER_ADDEDUSERuse to notify that new user(s) were added in on of his workspace shared folderFOLDER_ADMIN_DOWNGRADEuse to notify a user that he got downgraded from being administrator of a shared folderFOLDER_ADMIN_UPGRADEuse to notify a user that he got upgraded to administrator of a shared folderFOLDER_REMOVEDUSERuse to notify user(s) that they were removed from a workspace shared folderFOLDER_RENAMEuse to notify a workspace folder renamedFOLDER_SHAREuse to notify a user he got a workspace folder sharedFOLDER_UNSHAREuse to notify a workspace folder UnsharedITEM_DELETEuse to notify a user she got a workspace item deleted from one of his workspace shared folderITEM_NEWuse to notify a user she got a workspace item new in some of her workspace shared folderITEM_UPDATEuse to notify a user he got a workspace item updated from one of his workspace shared folder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends WorkspaceEvent>getNotificationClass()static WorkspaceEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WorkspaceEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITEM_NEW
public static final WorkspaceEventType ITEM_NEW
use to notify a user she got a workspace item new in some of her workspace shared folder
-
ITEM_DELETE
public static final WorkspaceEventType ITEM_DELETE
use to notify a user she got a workspace item deleted from one of his workspace shared folder
-
ITEM_UPDATE
public static final WorkspaceEventType ITEM_UPDATE
use to notify a user he got a workspace item updated from one of his workspace shared folder
-
FOLDER_SHARE
public static final WorkspaceEventType FOLDER_SHARE
use to notify a user he got a workspace folder shared
-
FOLDER_UNSHARE
public static final WorkspaceEventType FOLDER_UNSHARE
use to notify a workspace folder Unshared
-
FOLDER_RENAME
public static final WorkspaceEventType FOLDER_RENAME
use to notify a workspace folder renamed
-
FOLDER_ADMIN_UPGRADE
public static final WorkspaceEventType FOLDER_ADMIN_UPGRADE
use to notify a user that he got upgraded to administrator of a shared folder
-
FOLDER_ADMIN_DOWNGRADE
public static final WorkspaceEventType FOLDER_ADMIN_DOWNGRADE
use to notify a user that he got downgraded from being administrator of a shared folder
-
FOLDER_ADDEDUSER
public static final WorkspaceEventType FOLDER_ADDEDUSER
use to notify that new user(s) were added in on of his workspace shared folder
-
FOLDER_REMOVEDUSER
public static final WorkspaceEventType FOLDER_REMOVEDUSER
use to notify user(s) that they were removed from a workspace shared folder
-
-
Method Detail
-
values
public static WorkspaceEventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WorkspaceEventType c : WorkspaceEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkspaceEventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNotificationClass
public Class<? extends WorkspaceEvent> getNotificationClass()
-
-