Package org.apache.guacamole.net.event
Enum DirectoryEvent.Operation
- All Implemented Interfaces:
Serializable
,Comparable<DirectoryEvent.Operation>
,java.lang.constant.Constable
- Enclosing interface:
DirectoryEvent<ObjectType extends Identifiable>
The types of directory operations that may be represented by a
DirectoryEvent.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectoryEvent.Operation
Returns the enum constant of this type with the specified name.static DirectoryEvent.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADD
An object was added to theDirectory
. The object added can be accessed withDirectoryEvent.getObject()
, and its identifier may be obtained fromDirectoryEvent.getObjectIdentifier()
. -
GET
An object was retrieved from aDirectory
. The object retrieved can be accessed withDirectoryEvent.getObject()
, and its identifier may be obtained fromDirectoryEvent.getObjectIdentifier()
. -
UPDATE
An existing object within aDirectory
was modified. The modified object can be accessed withDirectoryEvent.getObject()
, and its identifier may be obtained fromDirectoryEvent.getObjectIdentifier()
. -
REMOVE
An existing object within aDirectory
was deleted/removed. The identifier of the object that was deleted may be obtained fromDirectoryEvent.getObjectIdentifier()
. The full object that was deleted will be made available viaDirectoryEvent.getObject()
if possible, but this is not guaranteed for deletions.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-