public abstract class LdapScanner extends Scanner
Modifier and Type | Field and Description |
---|---|
protected LdapParameters |
ldapParameters |
coreService, domain, importStatus
Constructor and Description |
---|
LdapScanner(ImportStatus importStatus,
ICoreServices coreService,
LdapParameters ldapParameters,
ItemValue<Domain> domain) |
LdapScanner(ImportStatus importStatus,
LdapParameters ldapParameters,
ItemValue<Domain> domain) |
Modifier and Type | Method and Description |
---|---|
protected void |
deletedGroups(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
LdapSearch ldapSearch) |
protected void |
deletedUsers(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
LdapSearch ldapSearch) |
protected ItemValue<Group> |
getBmGroupFromEntry(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected ItemValue<Group> |
getBmGroupFromUuid(UuidMapper uuidMapper) |
protected java.util.Optional<UuidMapper> |
getUuidMapperFromExtId(java.lang.String externalId) |
protected java.util.Set<UuidMapper> |
manageUsersFromCursor(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
org.apache.directory.api.ldap.model.cursor.SearchCursor cursor) |
protected java.util.Set<UuidMapper> |
manageUsersFromCursor(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
org.apache.directory.api.ldap.model.cursor.SearchCursor cursor,
java.util.Set<UuidMapper> currentSplitGroupMembers) |
void |
scan()
Scan directory for entries (Global mode)
|
void |
scan(java.lang.String lastUpdate)
Scan directory for updated entries since lastUpdate (Incremental mode)
|
protected abstract void |
scanLdapImpl(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
java.lang.String lastUpdate) |
manageGroupMembership, manageGroupsMembers, manageUserGroups, manageUserGroups
protected LdapParameters ldapParameters
public LdapScanner(ImportStatus importStatus, LdapParameters ldapParameters, ItemValue<Domain> domain)
public LdapScanner(ImportStatus importStatus, ICoreServices coreService, LdapParameters ldapParameters, ItemValue<Domain> domain)
public void scan() throws ServerFault
Scanner
scan
in class Scanner
ServerFault
public void scan(java.lang.String lastUpdate) throws ServerFault
Scanner
scan
in class Scanner
ServerFault
protected abstract void scanLdapImpl(org.apache.directory.ldap.client.api.LdapConnection ldapCon, java.lang.String lastUpdate) throws ServerFault
ldapCon
- lastUpdate
- ServerFault
protected java.util.Optional<UuidMapper> getUuidMapperFromExtId(java.lang.String externalId)
getUuidMapperFromExtId
in class Scanner
protected ItemValue<Group> getBmGroupFromEntry(org.apache.directory.api.ldap.model.entry.Entry entry) throws ServerFault
ServerFault
protected ItemValue<Group> getBmGroupFromUuid(UuidMapper uuidMapper) throws ServerFault
ServerFault
protected void deletedUsers(org.apache.directory.ldap.client.api.LdapConnection ldapCon, LdapSearch ldapSearch) throws ServerFault
ServerFault
protected void deletedGroups(org.apache.directory.ldap.client.api.LdapConnection ldapCon, LdapSearch ldapSearch) throws ServerFault
ServerFault
protected java.util.Set<UuidMapper> manageUsersFromCursor(org.apache.directory.ldap.client.api.LdapConnection ldapCon, org.apache.directory.api.ldap.model.cursor.SearchCursor cursor) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
protected java.util.Set<UuidMapper> manageUsersFromCursor(org.apache.directory.ldap.client.api.LdapConnection ldapCon, org.apache.directory.api.ldap.model.cursor.SearchCursor cursor, java.util.Set<UuidMapper> currentSplitGroupMembers) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
Copyright © 2021. All Rights Reserved.