org.connid.bundles.ldap.commons
Class AttributeStatusManagement

java.lang.Object
  extended by org.connid.bundles.ldap.commons.StatusManagement
      extended by org.connid.bundles.ldap.commons.AttributeStatusManagement

public class AttributeStatusManagement
extends StatusManagement


Field Summary
protected static String ATTR_NAME
           
protected static String ATTR_VALUE_ACTIVE
           
protected static String ATTR_VALUE_INACTIVE
           
 
Constructor Summary
AttributeStatusManagement()
           
 
Method Summary
 Set<String> getOperationalAttributes()
          Provide all the ldap attributes needed to know the entity status.
 Boolean getStatus(Attributes attributes, List<String> posixGroups, List<String> ldapGroups)
          Implement this method to retrieve user status from the given parameters.
 void setStatus(boolean status, Attributes attributes, List<String> posixGroups, List<String> ldapGroups)
          Implements this method to alter information given by input parameters in order to implement a custom enable/disable behaviour.
 
Methods inherited from class org.connid.bundles.ldap.commons.StatusManagement
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_NAME

protected static final String ATTR_NAME
See Also:
Constant Field Values

ATTR_VALUE_ACTIVE

protected static final String ATTR_VALUE_ACTIVE
See Also:
Constant Field Values

ATTR_VALUE_INACTIVE

protected static final String ATTR_VALUE_INACTIVE
See Also:
Constant Field Values
Constructor Detail

AttributeStatusManagement

public AttributeStatusManagement()
Method Detail

setStatus

public void setStatus(boolean status,
                      Attributes attributes,
                      List<String> posixGroups,
                      List<String> ldapGroups)
Description copied from class: StatusManagement
Implements this method to alter information given by input parameters in order to implement a custom enable/disable behaviour.

Specified by:
setStatus in class StatusManagement
attributes - entity ldap attributes.
posixGroups - entity ldap groups.
ldapGroups - entity posix groups.

getStatus

public Boolean getStatus(Attributes attributes,
                         List<String> posixGroups,
                         List<String> ldapGroups)
Description copied from class: StatusManagement
Implement this method to retrieve user status from the given parameters.

Specified by:
getStatus in class StatusManagement
Parameters:
attributes - entity ldap attributes.
posixGroups - entity posix groups.
ldapGroups - entity ldap groups.
Returns:
TRUE if users is enable, FALS if disabled, null for no status found.

getOperationalAttributes

public Set<String> getOperationalAttributes()
Description copied from class: StatusManagement
Provide all the ldap attributes needed to know the entity status.

Specified by:
getOperationalAttributes in class StatusManagement
Returns:
set of ldap attributes to be added to the set of all the attributes to get during searches.


Copyright © 2012. All Rights Reserved.