Package org.apache.guacamole.net.auth
Enum Directory.Type
- All Implemented Interfaces:
Serializable,Comparable<Directory.Type>,java.lang.constant.Constable
- Enclosing interface:
Directory<ObjectType extends Identifiable>
All Directory types that may be found on the
UserContext
interface.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe type of a Directory that containsActiveConnectionobjects.The type of a Directory that containsConnectionobjects.The type of a Directory that containsConnectionGroupobjects.The type of a Directory that containsSharingProfileobjects.The type of a Directory that containsUserobjects.The type of a Directory that containsUserGroupobjects. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Identifiable> Returns the base class of the type of object stored within aDirectoryof this type.static Directory.Typeof(Class<? extends Identifiable> objectType) Returns the Directory.Type representing the type of a Directory that could contain an object having the given class.static Directory.TypeReturns the enum constant of this type with the specified name.static Directory.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACTIVE_CONNECTION
The type of a Directory that containsActiveConnectionobjects. -
CONNECTION
The type of a Directory that containsConnectionobjects. -
CONNECTION_GROUP
The type of a Directory that containsConnectionGroupobjects. -
SHARING_PROFILE
The type of a Directory that containsSharingProfileobjects. -
USER
The type of a Directory that containsUserobjects. -
USER_GROUP
The type of a Directory that containsUserGroupobjects.
-
-
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
-
getObjectType
Returns the base class of the type of object stored within aDirectoryof this type.- Returns:
- The base class of the type of object stored within a
Directoryof this type.
-
of
Returns the Directory.Type representing the type of a Directory that could contain an object having the given class. The class may be a subclass of the overall base class of the objects stored within the Directory.- Parameters:
objectType- The class to determine the Directory.Type of.- Returns:
- The Directory.Type representing the type of a Directory that could contain an object having the given class, or null if there is no such Directory available via the UserContext interface.
-