Class UserAccountControlValueTranscoder
- java.lang.Object
 - 
- org.ldaptive.transcode.AbstractStringValueTranscoder<Integer>
 - 
- org.bremersee.data.ldaptive.transcoder.UserAccountControlValueTranscoder
 
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intACCOUNT_DISABLEDThe bit map value of a disabled account.static StringATTRIBUTE_NAMEThe attribute name in an active directory controller.static intDONT_EXPIRE_PASSWORDThe bit map value a password that doesn't expire.static intNORMAL_ACCOUNTThe bit map value of a normal account. 
- 
Constructor Summary
Constructors Constructor Description UserAccountControlValueTranscoder() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerdecodeStringValue(String value)StringencodeStringValue(Integer value)Class<Integer>getType()static intgetUserAccountControlValue(Boolean enabled, Integer existingValue)Gets user account control value.static booleanisUserAccountEnabled(Integer userAccountControlValue)Determines whether an account is enabled or not.static booleanisUserAccountEnabled(Integer userAccountControlValue, boolean defaultValue)Determines whether an account is enabled or not.- 
Methods inherited from class org.ldaptive.transcode.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValue 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ATTRIBUTE_NAME
public static final String ATTRIBUTE_NAME
The attribute name in an active directory controller.- See Also:
 - Constant Field Values
 
 
- 
ACCOUNT_DISABLED
public static final int ACCOUNT_DISABLED
The bit map value of a disabled account.- See Also:
 - Constant Field Values
 
 
- 
NORMAL_ACCOUNT
public static final int NORMAL_ACCOUNT
The bit map value of a normal account.- See Also:
 - Constant Field Values
 
 
- 
DONT_EXPIRE_PASSWORD
public static final int DONT_EXPIRE_PASSWORD
The bit map value a password that doesn't expire.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getUserAccountControlValue
public static int getUserAccountControlValue(Boolean enabled, Integer existingValue)
Gets user account control value.- Parameters:
 enabled- the enabledexistingValue- the existing value- Returns:
 - the user account control value
 
 
- 
isUserAccountEnabled
public static boolean isUserAccountEnabled(Integer userAccountControlValue)
Determines whether an account is enabled or not. If the user account control value isnull,truewill be returned (account is enabled).- Parameters:
 userAccountControlValue- the user account control value (can benull)- Returns:
 - the boolean
 
 
- 
isUserAccountEnabled
public static boolean isUserAccountEnabled(Integer userAccountControlValue, boolean defaultValue)
Determines whether an account is enabled or not.- Parameters:
 userAccountControlValue- the user account control value (can benull)defaultValue- the default value (will be returned, if user account control value isnull)- Returns:
 - the boolean
 
 
 - 
 
 -