T - The type of the results.public abstract class VisitingRetriever<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
USN_ATTRIBUTE_KEY
USN attribute name.
|
| Constructor and Description |
|---|
VisitingRetriever(LdapConfiguration ldapConfiguration,
int timeout,
int pagingSize,
long internalHighestCommittedUSN,
boolean isPagingAllowed,
String[] binaryAttributes)
Constructor to set LDAP connection from configuration.
|
VisitingRetriever(org.springframework.ldap.core.LdapTemplate ldapTemplate,
int timeout,
int pagingSize,
long internalHighestCommittedUSN,
boolean isPagingAllowed)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ExternalEntityVisitor<T> visitor,
boolean incremental)
This method retrieves all elements and let a visitor visit each of them.
|
protected org.springframework.ldap.core.CollectingNameClassPairCallbackHandler |
getCollectingNameClassPairCallbackHandler()
Method to create a handler for converting a list of results as a callback.
|
protected abstract org.springframework.ldap.core.ContextMapper |
getContextMapper()
Method to return a context mapper for mapping ldap results to the concrete result.
|
protected abstract List<LdapSearchBaseDefinition> |
getSearchBaseDefinitions()
Method to get the search base definitions.
|
protected SearchControls |
getSearchControl(boolean searchInSubtree)
SearchControl set the searchInSubtree flag, ReturningObj and timeout.
|
protected abstract String |
getSearchFilter()
Method to get the search filter for entities within the repository
|
protected static final String USN_ATTRIBUTE_KEY
public VisitingRetriever(LdapConfiguration ldapConfiguration, int timeout, int pagingSize, long internalHighestCommittedUSN, boolean isPagingAllowed, String[] binaryAttributes) throws NamingException
ldapConfiguration - Ldap configuration.internalHighestCommittedUSN - The usn to use.pagingSize - The maximal size of requestet pages.timeout - The timeout for connections.isPagingAllowed - True, if paging is allowed.binaryAttributes - Array of binary attributes.NamingException - Exception.public VisitingRetriever(org.springframework.ldap.core.LdapTemplate ldapTemplate,
int timeout,
int pagingSize,
long internalHighestCommittedUSN,
boolean isPagingAllowed)
ldapTemplate - The template for LDAP.internalHighestCommittedUSN - The usn to use.pagingSize - The maximal size of requestet pages.timeout - The timeout for connections.isPagingAllowed - True, if paging is allowed.public void accept(ExternalEntityVisitor<T> visitor, boolean incremental) throws RetrieverException
visitor - The visitor.incremental - If true, the only incremental changes will be considered, else all.RetrieverException - Exception.protected org.springframework.ldap.core.CollectingNameClassPairCallbackHandler getCollectingNameClassPairCallbackHandler()
protected abstract org.springframework.ldap.core.ContextMapper getContextMapper()
protected abstract List<LdapSearchBaseDefinition> getSearchBaseDefinitions()
protected SearchControls getSearchControl(boolean searchInSubtree)
searchInSubtree - True, if subtree search is enabled.protected abstract String getSearchFilter()
Copyright © 2019 Communote team. All rights reserved.