public abstract class Scanner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ICoreServices |
coreService |
protected ItemValue<Domain> |
domain |
ImportStatus |
importStatus |
Modifier | Constructor and Description |
---|---|
protected |
Scanner(ImportStatus importStatus,
ICoreServices coreService,
ItemValue<Domain> domain) |
protected |
Scanner(ImportStatus importStatus,
ItemValue<Domain> domain) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Optional<UuidMapper> |
getUuidMapperFromExtId(java.lang.String externalId) |
protected void |
manageGroupMembership(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
java.util.List<GroupManager> createdGroups)
Add a newly created group to his parents groups
|
protected void |
manageGroupsMembers(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
java.util.List<GroupManager> updatedGroups,
java.util.HashSet<UuidMapper> userMustUpdatedUuid)
Manage added or removed users or groups childs
|
static void |
manageUserGroups(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
ICoreServices coreService,
UserManager userManager,
java.util.function.Function<java.lang.String,java.util.Optional<? extends UuidMapper>> getUuidMapperFromExtId) |
protected void |
manageUserGroups(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
UserManager userManager) |
abstract void |
scan()
Scan directory for entries (Global mode)
|
abstract void |
scan(java.lang.String lastUpdate)
Scan directory for updated entries since lastUpdate (Incremental mode)
|
public final ImportStatus importStatus
protected final ICoreServices coreService
protected Scanner(ImportStatus importStatus, ItemValue<Domain> domain)
protected Scanner(ImportStatus importStatus, ICoreServices coreService, ItemValue<Domain> domain)
public abstract void scan()
ServerFault
public abstract void scan(java.lang.String lastUpdate)
lastUpdate
- ServerFault
protected abstract java.util.Optional<UuidMapper> getUuidMapperFromExtId(java.lang.String externalId)
protected void manageUserGroups(org.apache.directory.ldap.client.api.LdapConnection ldapCon, UserManager userManager)
public static void manageUserGroups(org.apache.directory.ldap.client.api.LdapConnection ldapCon, ICoreServices coreService, UserManager userManager, java.util.function.Function<java.lang.String,java.util.Optional<? extends UuidMapper>> getUuidMapperFromExtId) throws ServerFault
ServerFault
protected void manageGroupMembership(org.apache.directory.ldap.client.api.LdapConnection ldapCon, java.util.List<GroupManager> createdGroups) throws ServerFault
ServerFault
protected void manageGroupsMembers(org.apache.directory.ldap.client.api.LdapConnection ldapCon, java.util.List<GroupManager> updatedGroups, java.util.HashSet<UuidMapper> userMustUpdatedUuid)
ServerFault
Copyright © 2021. All Rights Reserved.