public abstract class LdapScanner extends Scanner
Modifier and Type | Field and Description |
---|---|
protected LdapParameters |
ldapParameters |
protected java.util.Optional<java.util.Set<UuidMapper>> |
splitGroupMembers |
coreService, domain, importLogger, ldapCon
Constructor and Description |
---|
LdapScanner(ImportLogger importLogger,
ICoreServices coreService,
LdapParameters ldapParameters,
ItemValue<Domain> domain) |
LdapScanner(ImportLogger importLogger,
LdapParameters ldapParameters,
ItemValue<Domain> domain) |
Modifier and Type | Method and Description |
---|---|
protected PagedSearchResult |
allGroupsFromDirectory() |
protected PagedSearchResult |
allUsersFromDirectory() |
protected boolean |
doNotImportGroup(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected boolean |
doNotImportUser(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected LdapConProxy |
getConnection() |
protected java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> |
getGroupFromDn(org.apache.directory.api.ldap.model.name.Dn groupDn) |
protected java.util.Optional<GroupManager> |
getGroupManager(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected GroupMemberAttribute |
getGroupMembersAttributeName() |
protected java.lang.String |
getKind() |
protected abstract LdapSearch |
getLdapSearch() |
protected java.util.Optional<org.apache.directory.api.ldap.model.name.Dn> |
getMemberDnFromLogin(java.lang.String userLogin) |
protected Parameters |
getParameter() |
protected java.util.List<IScannerEnhancer> |
getScannerEnhancerHooks() |
protected java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> |
getUserFromDn(org.apache.directory.api.ldap.model.name.Dn userDn) |
protected java.util.Optional<UserManager> |
getUserManager(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected java.util.Optional<UuidMapper> |
getUuidMapperFromEntry(org.apache.directory.api.ldap.model.entry.Entry entry) |
protected java.util.Optional<UuidMapper> |
getUuidMapperFromExtId(java.lang.String externalId) |
protected PagedSearchResult |
groupsDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) |
protected void |
reset() |
protected void |
setupSplitGroup() |
protected PagedSearchResult |
usersDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) |
protected java.util.Set<UuidMapper> |
uuidMapperFromExtIds(java.util.List<java.lang.String> externalIds) |
getMemberDn, manageUserGroups, manageUserGroups, scan
protected LdapParameters ldapParameters
protected java.util.Optional<java.util.Set<UuidMapper>> splitGroupMembers
public LdapScanner(ImportLogger importLogger, LdapParameters ldapParameters, ItemValue<Domain> domain)
public LdapScanner(ImportLogger importLogger, ICoreServices coreService, LdapParameters ldapParameters, ItemValue<Domain> domain)
protected java.util.Optional<UuidMapper> getUuidMapperFromExtId(java.lang.String externalId)
getUuidMapperFromExtId
in class Scanner
protected abstract LdapSearch getLdapSearch()
protected void setupSplitGroup()
setupSplitGroup
in class Scanner
protected Parameters getParameter()
getParameter
in class Scanner
protected LdapConProxy getConnection()
getConnection
in class Scanner
protected java.util.Set<UuidMapper> uuidMapperFromExtIds(java.util.List<java.lang.String> externalIds)
uuidMapperFromExtIds
in class Scanner
protected PagedSearchResult allUsersFromDirectory() throws org.apache.directory.api.ldap.model.exception.LdapException
allUsersFromDirectory
in class Scanner
org.apache.directory.api.ldap.model.exception.LdapException
protected java.util.Optional<UuidMapper> getUuidMapperFromEntry(org.apache.directory.api.ldap.model.entry.Entry entry)
getUuidMapperFromEntry
in class Scanner
protected PagedSearchResult allGroupsFromDirectory() throws org.apache.directory.api.ldap.model.exception.LdapException
allGroupsFromDirectory
in class Scanner
org.apache.directory.api.ldap.model.exception.LdapException
protected PagedSearchResult usersDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) throws org.apache.directory.api.ldap.model.exception.LdapException
usersDnByLastModification
in class Scanner
org.apache.directory.api.ldap.model.exception.LdapException
protected PagedSearchResult groupsDnByLastModification(java.util.Optional<java.lang.String> lastUpdate) throws org.apache.directory.api.ldap.model.exception.LdapException
groupsDnByLastModification
in class Scanner
org.apache.directory.api.ldap.model.exception.LdapException
protected java.util.Optional<UserManager> getUserManager(org.apache.directory.api.ldap.model.entry.Entry entry)
getUserManager
in class Scanner
protected java.util.Optional<GroupManager> getGroupManager(org.apache.directory.api.ldap.model.entry.Entry entry)
getGroupManager
in class Scanner
protected java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> getUserFromDn(org.apache.directory.api.ldap.model.name.Dn userDn) throws org.apache.directory.api.ldap.model.exception.LdapException
getUserFromDn
in class Scanner
org.apache.directory.api.ldap.model.exception.LdapException
protected java.util.Optional<org.apache.directory.api.ldap.model.entry.Entry> getGroupFromDn(org.apache.directory.api.ldap.model.name.Dn groupDn) throws org.apache.directory.api.ldap.model.exception.LdapException
getGroupFromDn
in class Scanner
org.apache.directory.api.ldap.model.exception.LdapException
protected boolean doNotImportUser(org.apache.directory.api.ldap.model.entry.Entry entry)
doNotImportUser
in class Scanner
protected boolean doNotImportGroup(org.apache.directory.api.ldap.model.entry.Entry entry)
doNotImportGroup
in class Scanner
protected java.util.Optional<org.apache.directory.api.ldap.model.name.Dn> getMemberDnFromLogin(java.lang.String userLogin)
getMemberDnFromLogin
in class Scanner
protected GroupMemberAttribute getGroupMembersAttributeName()
getGroupMembersAttributeName
in class Scanner
protected java.util.List<IScannerEnhancer> getScannerEnhancerHooks()
getScannerEnhancerHooks
in class Scanner
Copyright © 2021. All Rights Reserved.