Enum AdDirSyncResponseFlag

java.lang.Object
java.lang.Enum<AdDirSyncResponseFlag>
org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncResponseFlag
All Implemented Interfaces:
Serializable, Comparable<AdDirSyncResponseFlag>

public enum AdDirSyncResponseFlag extends Enum<AdDirSyncResponseFlag>
The flags used in the AdDirSync response.
Author:
Apache Directory Project
  • Enum Constant Details

    • LDAP_DIRSYNC_OBJECT_SECURITY

      public static final AdDirSyncResponseFlag LDAP_DIRSYNC_OBJECT_SECURITY
      The Object Security flag
    • LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER

      public static final AdDirSyncResponseFlag LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER
      The Ancestors First Order flag
    • LDAP_DIRSYNC_PUBLIC_DATA_ONLY

      public static final AdDirSyncResponseFlag LDAP_DIRSYNC_PUBLIC_DATA_ONLY
      The Public Data Only flag
    • LDAP_DIRSYNC_INCREMENTAL_VALUES

      public static final AdDirSyncResponseFlag LDAP_DIRSYNC_INCREMENTAL_VALUES
      The Incremental Values flag
  • Method Details

    • values

      public static AdDirSyncResponseFlag[] 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 AdDirSyncResponseFlag 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
    • getValue

      public int getValue()
      Get the value
      Returns:
      The associated value of a given flag
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AdDirSyncResponseFlag>
      See Also:
    • getFlags

      public static Set<AdDirSyncResponseFlag> getFlags(int value)
      Get back the combination of flags associated with a given value
      Parameters:
      value - The integer value
      Returns:
      a set of all flags associated with the integer value
    • getBitmask

      public static int getBitmask(Set<AdDirSyncResponseFlag> flags)
      Get back the bitmask (as an integer) associated with the given flags
      Parameters:
      flags - The AdDirSync flags
      Returns:
      a bitmask in integer form associated with the set of flags