|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.ldappc.synchronize.GroupEntrySynchronizer
public class GroupEntrySynchronizer
This synchronizes groups stored in the directory as entries.
| Constructor Summary | |
|---|---|
GroupEntrySynchronizer(Ldappc ldappc,
boolean provisionMemberDns)
Constructs a GroupEntrySynchronizer. |
|
| Method Summary | |
|---|---|
protected void |
addGroupEntry(Name groupDn,
Group group,
Set<Group> groups)
This creates a new Group ldap entry. |
protected Name |
buildGroupDn(Group group)
This builds the DN of the given group. |
protected void |
buildStemOuEntries(Group group)
This builds the group's parent OU DN. |
String |
calculateLdif(Group group,
Set<Group> groups)
Create an LDIF representation of the given group. |
protected void |
clearRoot()
This deletes any entries under the root entry are neither organizationalUnits nor have the same object class as a group entry. |
protected void |
commit()
This commits any changes not already committed to the directory. |
protected String |
getErrorData(Group group)
Builds an error data string based on the objects provided. |
protected String |
getErrorData(Member member)
Builds an error data string based on the objects provided. |
protected String |
getErrorData(Subject subject)
Builds an error data string based on the objects provided. |
protected void |
initGroupData(Name groupDn)
This populates the instance variables with the current values from the group's LDAP entry. |
protected void |
initialize()
Perform any initialization prior to processing the set of groups. |
protected void |
initializeInclude(Group group)
Initializes the attributes needed for holding data for the given group. |
protected void |
performInclude(Group group,
int status,
Set<Group> groups)
This identifies the underlying group as one that must remain or, if need be, must be added to the subject's LDAP entry. |
protected void |
populate()
This populates this object with the current values from the root's LDAP entry that are either organizational units or have a object class type of the group entry. |
protected void |
populateDns(Set<Name> dns,
String filter,
SearchControls searchControls)
This populates the given Set with the DNs of any child entries of the root DN matching the given filter. |
protected void |
storeGroupData(Group group,
Set<Group> groups)
This stores the given Group's data in the AttributeModifiers. |
protected void |
storeObjectClassData()
This stores the object class data from the configuration in the associated AttributeModifier. |
void |
synchronize(Set<Group> groups)
Synchronizes the group set with that in the directory. |
protected void |
updateGroupEntry(Name groupDn,
Group group,
Set<Group> groups)
This updates the group's ldap entry with the current data. |
protected void |
updateProcessedOus(Name groupDn)
This updates the list of processed OUs with those identified from the group's DN. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupEntrySynchronizer(Ldappc ldappc,
boolean provisionMemberDns)
throws NamingException,
ConfigurationException
GroupEntrySynchronizer.
ctx - Ldap context to be used for synchronizingroot - DN of the root elementconfiguration - Grouper provisioning configurationoptions - Grouper provisioning optionssubjectCache - Subject cache to speed subject retrievalprovisionMemberDns - will provision member DNs if true
NamingException - Thrown when a naming exception occurs.
ConfigurationException - Thrown if the configuration file is not correct.| Method Detail |
|---|
public void synchronize(Set<Group> groups)
throws NamingException,
LdappcException
groups - Set of Groups
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
public String calculateLdif(Group group,
Set<Group> groups)
throws LdappcException,
NamingException
group -
LdappcException
NamingException
protected void performInclude(Group group,
int status,
Set<Group> groups)
throws NamingException,
LdappcException
group - Group to be includedstatus - Either #STATUS_NEW, #STATUS_MODIFIED,
#STATUS_UNCHANGED or #STATUS_UNKNOWN.
NamingException - thrown if a Naming error occurs
LdappcException - thrown if an error occurs
protected void updateGroupEntry(Name groupDn,
Group group,
Set<Group> groups)
throws NamingException
groupDn - DN of the group entrygroup - Group associated with the group entry
NamingException - thrown if a Naming exception occurs
protected void initGroupData(Name groupDn)
throws NamingException
groupDn - DN of the group entry
NamingException - thrown if a Naming error occurs
protected void storeGroupData(Group group,
Set<Group> groups)
throws NamingException,
LdappcException
group - Group
NamingException - thrown if a naming error occurs
LdappcException
protected void storeObjectClassData()
throws NamingException
NamingException - thrown if a naming exception occurs
protected void addGroupEntry(Name groupDn,
Group group,
Set<Group> groups)
throws NamingException
groupDn and is populated from group.
groupDn - DN of the new entrygroup - Group holding the data for the new entry
NamingException - Thrown if a naming exception occurs.
protected Name buildGroupDn(Group group)
throws NamingException,
LdappcException
buildStemOuEntries(Group) to build the necessary organizationalUnit
entries.
group - Group
NamingException - thrown if a Naming error occurs.
LdappcException - thrown if the RDN attribute is not defined for the group.
protected void buildStemOuEntries(Group group)
throws NamingException
group - Group
NamingException - thrown if a Naming exception occured.updateProcessedOus(Name)protected void updateProcessedOus(Name groupDn)
groupDn - DN of the group entry
protected void initialize()
throws NamingException,
LdappcException
NamingException - thrown if a Naming error occurs
LdappcException - thrown if an error occurs
protected void clearRoot()
throws NamingException
NamingException - Thrown if a naming exception occurs.
protected void populate()
throws NamingException
NamingException - thrown if a Naming error occurs
protected void populateDns(Set<Name> dns,
String filter,
SearchControls searchControls)
throws NamingException
dns - Set to hold the DNsfilter - LDAP FiltersearchControls - Search controls
NamingException - thrown if a Naming error occurs.
protected void initializeInclude(Group group)
throws NamingException
group - Group
NamingException
protected void commit()
throws NamingException,
LdappcException
NamingException - thrown if a Naming error occurs
LdappcException - thrown if an error occursedu.internet2.middleware.ldappc.synchronize.MembershipSynchronizer#commit()protected String getErrorData(Subject subject)
subject - Subject
protected String getErrorData(Group group)
group - Group
protected String getErrorData(Member member)
member - Member
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||