org.identityconnectors.ldap.commons
Class StatusManagement

java.lang.Object
  extended by org.identityconnectors.ldap.commons.StatusManagement
Direct Known Subclasses:
DefaultStatusManagement

public abstract class StatusManagement
extends Object


Constructor Summary
StatusManagement()
           
 
Method Summary
static StatusManagement getInstance(String c)
           
abstract  Set<String> getOperationalAttributes()
          Provide all the ldap attributes needed to know the entity status.
abstract  Boolean getStatus(Attributes attributes, List<String> posixGroups, List<String> ldapGroups)
          Implement this method to retrieve user status from the given parameters.
abstract  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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusManagement

public StatusManagement()
Method Detail

setStatus

public abstract 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.

Parameters:
attributes - entity ldap attributes.
posixGroups - entity ldap groups.
ldapGroups - entity posix groups.

getStatus

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

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 abstract Set<String> getOperationalAttributes()
Provide all the ldap attributes needed to know the entity status.

Returns:
set of ldap attributes to be added to the set of all the attributes to get during searches.

getInstance

public static StatusManagement getInstance(String c)


Copyright © 2012. All Rights Reserved.