Class LdapProvisioningTargetNativeSync
java.lang.Object
edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningTargetNativeSync
edu.internet2.middleware.grouper.app.ldapProvisioning.LdapProvisioningTargetNativeSync
LDAP-specific
GrouperProvisioningTargetNativeSync: converts LdapEntry
objects into the generic native-target reporting beans, widens the LDAP search-attribute
set with the configured native-attribute names, and offers a per-entry capture convenience.
Typical DAO usage per retrieval method (read paths only — write capture is a future
opt-in via a readAfterWrite flag):
- Before issuing the LDAP search, call
widenLdapAttributeNamesForGroups(Set)orwidenLdapAttributeNamesForEntities(Set)so the directory returns the report-only attributes alongside the configured ones. - For each
LdapEntryreturned, callcaptureGroupEntry(LdapEntry, String)orcaptureEntityEntry(LdapEntry, String)to build + record the native bean and (if applicable) the native memberships extracted from a membership attribute.
All methods no-op when the corresponding load flag is off, so callers do not need to flag-check at the call site.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendNativeMembershipsFromEntityEntry(List<GrouperProvisioningTargetNativeMembership> destination, LdapEntry entityLdapEntry, String entityMembershipAttributeName) Extract native memberships from an entity LdapEntry.voidappendNativeMembershipsFromGroupEntry(List<GrouperProvisioningTargetNativeMembership> destination, LdapEntry groupLdapEntry, String groupMembershipAttributeName) Extract native memberships from a group LdapEntry.buildNativeGroup(LdapEntry ldapEntry) Build a native group bean from an LDAP entry.buildNativeUser(LdapEntry ldapEntry) Build a native user bean from an LDAP entry.voidcaptureEntityEntry(LdapEntry ldapEntry, String entityMembershipAttributeName) Full per-entry capture for an entity (user): build the native user bean, record it, then extract and record any native memberships found onentityMembershipAttributeName.voidcaptureGroupEntry(LdapEntry ldapEntry, String groupMembershipAttributeName) Full per-entry capture for a group: build the native group bean, record it, then extract and record any native memberships found ongroupMembershipAttributeName.voidwidenLdapAttributeNamesForEntities(Set<String> ldapAttributeNames) Add the LDAP attribute names called for bynativeAttributeConfigsEntitiesto the caller's existing search-attribute set.voidwidenLdapAttributeNamesForGroups(Set<String> ldapAttributeNames) Add the LDAP attribute names called for bynativeAttributeConfigsGroupsto the caller's existing search-attribute set.Methods inherited from class edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningTargetNativeSync
clearSyncBackGroupForDelete, clearSyncBackGroupForRead, clearSyncBackUserForDelete, clearSyncBackUserForRead, configuredNativeAttributeConfigsEntities, configuredNativeAttributeConfigsGroups, effectiveNativeAttributeConfigsEntities, effectiveNativeAttributeConfigsGroups, getDefaultNativeAttributeConfigsEntities, getDefaultNativeAttributeConfigsGroups, getGrouperProvisioner, grouperToNativeNameExceptionsEntities, grouperToNativeNameExceptionsGroups, markSyncBackGroupForDelete, markSyncBackGroupForRead, markSyncBackUserForDelete, markSyncBackUserForRead, recordTargetNativeGroup, recordTargetNativeGroupWrite, recordTargetNativeMembershipDelete, recordTargetNativeMembershipInsert, recordTargetNativeMembershipReplace, recordTargetNativeMemberships, recordTargetNativeUser, recordTargetNativeUserWrite, removeTargetNativeGroup, removeTargetNativeUser, setGrouperProvisioner
-
Constructor Details
-
LdapProvisioningTargetNativeSync
public LdapProvisioningTargetNativeSync()
-
-
Method Details
-
widenLdapAttributeNamesForGroups
Add the LDAP attribute names called for bynativeAttributeConfigsGroupsto the caller's existing search-attribute set. No-op when reporting is disabled. -
widenLdapAttributeNamesForEntities
Add the LDAP attribute names called for bynativeAttributeConfigsEntitiesto the caller's existing search-attribute set. No-op when reporting is disabled. -
buildNativeGroup
Build a native group bean from an LDAP entry.targetIdis the DN; attribute map collects all attributes returned by the LDAP search. -
buildNativeUser
Build a native user bean from an LDAP entry.targetIdis the DN; attribute map collects all attributes returned by the LDAP search. -
appendNativeMembershipsFromGroupEntry
public void appendNativeMembershipsFromGroupEntry(List<GrouperProvisioningTargetNativeMembership> destination, LdapEntry groupLdapEntry, String groupMembershipAttributeName) Extract native memberships from a group LdapEntry. For each value ofgroupMembershipAttributeNameon the group, append aGrouperProvisioningTargetNativeMembershipwithtargetGroupId= the group's DN andtargetUserId= the membership value. -
appendNativeMembershipsFromEntityEntry
public void appendNativeMembershipsFromEntityEntry(List<GrouperProvisioningTargetNativeMembership> destination, LdapEntry entityLdapEntry, String entityMembershipAttributeName) Extract native memberships from an entity LdapEntry. Mirror ofappendNativeMembershipsFromGroupEntry(java.util.List<edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningTargetNativeMembership>, edu.internet2.middleware.grouper.ldap.LdapEntry, java.lang.String): each value ofentityMembershipAttributeNameon the user becomes a membership withtargetUserId= the user's DN andtargetGroupId= the value. -
captureGroupEntry
Full per-entry capture for a group: build the native group bean, record it, then extract and record any native memberships found ongroupMembershipAttributeName. No-ops cascade through the recorder methods, so this is safe to call unconditionally. -
captureEntityEntry
Full per-entry capture for an entity (user): build the native user bean, record it, then extract and record any native memberships found onentityMembershipAttributeName.
-