Enum Directory.Type

java.lang.Object
java.lang.Enum<Directory.Type>
org.apache.guacamole.net.auth.Directory.Type
All Implemented Interfaces:
Serializable, Comparable<Directory.Type>, java.lang.constant.Constable
Enclosing interface:
Directory<ObjectType extends Identifiable>

public static enum Directory.Type extends Enum<Directory.Type>
All Directory types that may be found on the UserContext interface.
  • Enum Constant Details

  • Method Details

    • values

      public static Directory.Type[] 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

      public static Directory.Type 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 name
      NullPointerException - if the argument is null
    • getObjectType

      public Class<? extends Identifiable> getObjectType()
      Returns the base class of the type of object stored within a Directory of this type.
      Returns:
      The base class of the type of object stored within a Directory of this type.
    • of

      public static Directory.Type of(Class<? extends Identifiable> objectType)
      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.