public abstract class Scanner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ICoreServices |
coreService |
protected ItemValue<Domain> |
domain |
protected ImportLogger |
importLogger |
protected LdapConProxy |
ldapCon |
Modifier | Constructor and Description |
---|---|
protected |
Scanner(ImportLogger importLogger,
ICoreServices coreService,
ItemValue<Domain> domain) |
protected |
Scanner(ImportLogger importLogger,
ItemValue<Domain> domain) |
Modifier and Type | Method and Description |
---|---|
protected abstract PagedSearchResult |
allGroupsFromDirectory() |
protected abstract PagedSearchResult |
allUsersFromDirectory() |
protected abstract boolean |
doNotImportGroup(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected abstract boolean |
doNotImportUser(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected abstract LdapConProxy |
getConnection() |
protected abstract java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> |
getGroupFromDn(org.apache.directory.api.ldap.model.name.Dn dn) |
protected abstract java.util.Optional<GroupManager> |
getGroupManager(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected abstract GroupMemberAttribute |
getGroupMembersAttributeName() |
protected abstract java.lang.String |
getKind() |
protected java.util.Optional<org.apache.directory.api.ldap.model.name.Dn> |
getMemberDn(java.lang.String groupMember)
Convert groupMember to DN.
|
protected abstract java.util.Optional<org.apache.directory.api.ldap.model.name.Dn> |
getMemberDnFromLogin(java.lang.String userLogin) |
protected abstract Parameters |
getParameter() |
protected abstract java.util.List<IScannerEnhancer> |
getScannerEnhancerHooks() |
protected abstract java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> |
getUserFromDn(org.apache.directory.api.ldap.model.name.Dn dn) |
protected abstract java.util.Optional<UserManager> |
getUserManager(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected abstract java.util.Optional<UuidMapper> |
getUuidMapperFromEntry(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected abstract java.util.Optional<UuidMapper> |
getUuidMapperFromExtId(java.lang.String externalId) |
protected abstract PagedSearchResult |
groupsDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) |
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 abstract void |
manageUserGroups(UserManager userManager) |
protected abstract void |
reset() |
void |
scan()
Scan directory for updated entries since lastUpdate (Incremental mode)
|
protected abstract void |
setupSplitGroup() |
protected abstract PagedSearchResult |
usersDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) |
protected abstract java.util.Set<UuidMapper> |
uuidMapperFromExtIds(java.util.List<java.lang.String> importedUsersExtId) |
protected final ImportLogger importLogger
protected final ICoreServices coreService
protected LdapConProxy ldapCon
protected Scanner(ImportLogger importLogger, ItemValue<Domain> domain)
protected Scanner(ImportLogger importLogger, ICoreServices coreService, ItemValue<Domain> domain)
public void scan()
lastUpdate
- protected abstract void setupSplitGroup()
protected abstract void reset()
protected abstract java.lang.String getKind()
protected abstract Parameters getParameter()
protected abstract LdapConProxy getConnection()
protected abstract java.util.Optional<UuidMapper> getUuidMapperFromExtId(java.lang.String externalId)
protected abstract java.util.Set<UuidMapper> uuidMapperFromExtIds(java.util.List<java.lang.String> importedUsersExtId)
protected abstract java.util.Optional<UuidMapper> getUuidMapperFromEntry(org.apache.directory.api.ldap.model.entry.Entry entry)
protected abstract java.util.Optional<UserManager> getUserManager(org.apache.directory.api.ldap.model.entry.Entry entry)
protected abstract java.util.Optional<GroupManager> getGroupManager(org.apache.directory.api.ldap.model.entry.Entry entry)
protected abstract GroupMemberAttribute getGroupMembersAttributeName()
protected abstract boolean doNotImportUser(org.apache.directory.api.ldap.model.entry.Entry entry)
protected abstract boolean doNotImportGroup(org.apache.directory.api.ldap.model.entry.Entry entry)
protected abstract PagedSearchResult allUsersFromDirectory() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
protected abstract PagedSearchResult allGroupsFromDirectory() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
protected abstract PagedSearchResult usersDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
protected abstract PagedSearchResult groupsDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
protected abstract java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> getUserFromDn(org.apache.directory.api.ldap.model.name.Dn dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
protected abstract java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> getGroupFromDn(org.apache.directory.api.ldap.model.name.Dn dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
protected abstract void manageUserGroups(UserManager userManager)
protected abstract java.util.Optional<org.apache.directory.api.ldap.model.name.Dn> getMemberDnFromLogin(java.lang.String userLogin)
protected abstract java.util.List<IScannerEnhancer> getScannerEnhancerHooks()
protected java.util.Optional<org.apache.directory.api.ldap.model.name.Dn> getMemberDn(java.lang.String groupMember)
groupMember
- valid DN or user loginpublic 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
Copyright © 2021. All Rights Reserved.