public class LdapUserRepository extends AbstractExternalUserRepository implements PropertyKeys
Modifier and Type | Field and Description |
---|---|
static String |
EXTERNAL_SYSTEM_ID_DEFAULT_LDAP
Default Ldap it.
|
PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_ALLOW_PAGING, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_ENABLED_GROUP, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_ENABLED_USER, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_PAGING_SIZE, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_TIME_OUT, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_USER_SEQUENCE_NUMBER
Constructor and Description |
---|
LdapUserRepository(org.osgi.framework.BundleContext bundleContext)
Default constructor setting the default system id
|
Modifier and Type | Method and Description |
---|---|
LdapConfiguration |
createConfiguration()
Create an empty configuration.
|
LdapConfiguration |
getConfiguration()
Get the ldap configuration of the client
|
Collection<StringPropertyTO> |
getExternalLoginProperties(Long userId,
ExternalUserAuthentication externalUserAuthentication)
External Repos can return additional properties that will be included e.g.
|
ExternalUserGroupAccessor |
getExternalUserGroupAccessor()
Get the external user group accessor if user repository is also an group repository
|
IncrementalRepositoryChangeTracker |
getIncrementalRepositoryChangeTracker(boolean doFullSynchronization)
Method to get an tracker for changes within an external repository.
|
LocalizedMessage |
getName() |
Set<UserProfileFields> |
getProvidedProfileFieldNames() |
ExternalUserVO |
getUser(String externalUserId)
Get external user from ldap repository
|
boolean |
isIncrementalSynchronizationAvailable() |
void |
start() |
void |
stop() |
getExternalSystemId, getOrder, getUser, isActive, isConfigurationSet, showInIntegrationOverview
public static final String EXTERNAL_SYSTEM_ID_DEFAULT_LDAP
public LdapUserRepository(org.osgi.framework.BundleContext bundleContext)
public LdapConfiguration createConfiguration()
createConfiguration
in interface ExternalUserRepository
public LdapConfiguration getConfiguration()
getConfiguration
in interface ExternalUserRepository
LdapConfiguration
public Collection<StringPropertyTO> getExternalLoginProperties(Long userId, ExternalUserAuthentication externalUserAuthentication) throws AuthorizationException
ExternalUserRepository
getExternalLoginProperties
in interface ExternalUserRepository
userId
- the id of the user the authentication is forexternalUserAuthentication
- the authentication to get additional properties forAuthorizationException
public ExternalUserGroupAccessor getExternalUserGroupAccessor()
getExternalUserGroupAccessor
in interface ExternalUserRepository
getExternalUserGroupAccessor
in class AbstractExternalUserRepository
public IncrementalRepositoryChangeTracker getIncrementalRepositoryChangeTracker(boolean doFullSynchronization)
getIncrementalRepositoryChangeTracker
in interface ExternalUserRepository
getIncrementalRepositoryChangeTracker
in class AbstractExternalUserRepository
doFullSynchronization
- If set to true, a full synchronization should be done.public LocalizedMessage getName()
getName
in interface ExternalUserRepository
public Set<UserProfileFields> getProvidedProfileFieldNames()
getProvidedProfileFieldNames
in interface ExternalUserRepository
public ExternalUserVO getUser(String externalUserId) throws ExternalRepositoryException
getUser
in interface ExternalUserRepository
externalUserId
- external user identifier conform with the alias in ldapExternalUserVO
ExternalRepositoryException
- external repository exceptionpublic boolean isIncrementalSynchronizationAvailable()
isIncrementalSynchronizationAvailable
in interface ExternalUserRepository
isIncrementalSynchronizationAvailable
in class AbstractExternalUserRepository
IncrementalRepositoryChangeTrackerFactory
!= nullpublic void start()
public void stop()
Copyright © 2019 Communote team. All rights reserved.