Enum AdDirSyncResponseFlag
java.lang.Object
java.lang.Enum<AdDirSyncResponseFlag>
org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncResponseFlag
- All Implemented Interfaces:
Serializable, Comparable<AdDirSyncResponseFlag>
The flags used in the AdDirSync response.
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Ancestors First Order flagThe Incremental Values flagThe Object Security flagThe Public Data Only flag -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBitmask(Set<AdDirSyncResponseFlag> flags) Get back the bitmask (as an integer) associated with the given flagsstatic Set<AdDirSyncResponseFlag> getFlags(int value) Get back the combination of flags associated with a given valueintgetValue()Get the valuetoString()static AdDirSyncResponseFlagReturns the enum constant of this type with the specified name.static AdDirSyncResponseFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LDAP_DIRSYNC_OBJECT_SECURITY
The Object Security flag -
LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER
The Ancestors First Order flag -
LDAP_DIRSYNC_PUBLIC_DATA_ONLY
The Public Data Only flag -
LDAP_DIRSYNC_INCREMENTAL_VALUES
The Incremental Values flag
-
-
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
-
getValue
public int getValue()Get the value- Returns:
- The associated value of a given flag
-
toString
- Overrides:
toStringin classEnum<AdDirSyncResponseFlag>- See Also:
-
getFlags
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
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
-