org.identityconnectors.ldap.commons
Class DefaultStatusManagement

java.lang.Object
  extended by org.identityconnectors.ldap.commons.StatusManagement
      extended by org.identityconnectors.ldap.commons.DefaultStatusManagement

public class DefaultStatusManagement
extends StatusManagement


Constructor Summary
DefaultStatusManagement()
           
 
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.identityconnectors.ldap.commons.StatusManagement
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStatusManagement

public DefaultStatusManagement()
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.