edu.internet2.middleware.ldappc.synchronize
Class StringMembershipSynchronizer

java.lang.Object
  extended by edu.internet2.middleware.ldappc.synchronize.StringMembershipSynchronizer

public class StringMembershipSynchronizer
extends Object

This synchronizes memberships stored in the directory as strings in an attribute.


Constructor Summary
StringMembershipSynchronizer(Ldappc ldappc, String subject)
          Constructs a StringMembershipSynchronizer.
 
Method Summary
 String calculateLdif(Set<String> groupNames)
           
protected  void commit()
          This commits any changes not already committed to the directory.
 String getSubject()
          Get the DN of the subject.
protected  void initialize()
          Perform any initialization prior to processing the set of permissions.
protected  void populate()
          This populates this object with the current values from the subject's LDAP entry.
 void synchronize(Set<String> groupNames)
          Synchronizes the groups with those in the directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMembershipSynchronizer

public StringMembershipSynchronizer(Ldappc ldappc,
                                    String subject)
                             throws NamingException,
                                    ConfigurationException
Constructs a StringMembershipSynchronizer.

Parameters:
ctx - Ldap context to use for provisioning
subject - DN of the subject whose memberships are being provisioned
configuration - Signet provisioning configuration
options - Signet provisioning options
subjectCache - Subject cache to speed subject retrieval
Throws:
NamingException - thrown if a naming exception occurs.
ConfigurationException - thrown if the configuration isn't correct.
Method Detail

synchronize

public void synchronize(Set<String> groupNames)
                 throws NamingException,
                        LdappcException
Synchronizes the groups with those in the directory.

Parameters:
groupNames - Set of group names
Throws:
NamingException - thrown if a Naming error occurs
MultiErrorException - thrown if one or more exceptions occurred that did not need to stop all processing
LdappcException - thrown if an error occurs

calculateLdif

public String calculateLdif(Set<String> groupNames)
                     throws LdappcException,
                            NamingException
Throws:
LdappcException
NamingException

initialize

protected void initialize()
                   throws NamingException,
                          LdappcException
Perform any initialization prior to processing the set of permissions.

Throws:
NamingException - thrown if a Naming error occurs
LdappcException - thrown if an error occurs
See Also:
edu.internet2.middleware.ldappc.synchronize.PermissionSynchronizer#initialize()

populate

protected void populate()
                 throws NamingException
This populates this object with the current values from the subject's LDAP entry.

Throws:
NamingException - thrown if a Naming error occurs

commit

protected void commit()
               throws NamingException,
                      LdappcException
This commits any changes not already committed to the directory.

Throws:
NamingException - thrown if a Naming error occurs
LdappcException - thrown if an error occurs
See Also:
edu.internet2.middleware.ldappc.synchronize.MembershipSynchronizer#commit()

getSubject

public String getSubject()
Get the DN of the subject.

Returns:
DN of the subject


Copyright © 2011 Internet2. All Rights Reserved.