Class LdapRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.ldap.repository.support.LdapRepositoryFactory
- All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, EnvironmentAware, EnvironmentCapable
Factory to create
LdapRepository instances.- Author:
- Mattias Hellborg Arthursson, Eddu Melendez, Mark Paluch, Jens Schauder
-
Constructor Summary
ConstructorsConstructorDescriptionLdapRepositoryFactory(org.springframework.ldap.core.LdapOperations ldapOperations) Creates a newLdapRepositoryFactory. -
Method Summary
Modifier and TypeMethodDescription<T,ID> EntityInformation <T, ID> getEntityInformation(Class<T> domainClass) protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) getRepositoryFragments(RepositoryMetadata metadata) getRepositoryFragments(RepositoryMetadata metadata, org.springframework.ldap.core.LdapOperations operations) CreatesRepositoryComposition.RepositoryFragmentsbased onRepositoryMetadatato add LDAP-specific extensions.protected ObjectgetTargetRepository(RepositoryInformation information) Methods inherited from class RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getEntityInformation, getEnvironment, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
-
Constructor Details
-
LdapRepositoryFactory
public LdapRepositoryFactory(org.springframework.ldap.core.LdapOperations ldapOperations) Creates a newLdapRepositoryFactory.- Parameters:
ldapOperations- must not be null.
-
-
Method Details
-
getEntityInformation
- Overrides:
getEntityInformationin classRepositoryFactorySupport
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClassin classRepositoryFactorySupport
-
getRepositoryFragments
protected RepositoryComposition.RepositoryFragments getRepositoryFragments(RepositoryMetadata metadata) - Overrides:
getRepositoryFragmentsin classRepositoryFactorySupport
-
getRepositoryFragments
protected RepositoryComposition.RepositoryFragments getRepositoryFragments(RepositoryMetadata metadata, org.springframework.ldap.core.LdapOperations operations) CreatesRepositoryComposition.RepositoryFragmentsbased onRepositoryMetadatato add LDAP-specific extensions. Typically, adds aQuerydslLdapPredicateExecutorif the repository interface uses Querydsl.Can be overridden by subclasses to customize
RepositoryComposition.RepositoryFragments.- Parameters:
metadata- repository metadata.operations- the LDAP operations manager.- Returns:
- Since:
- 2.6
-
getTargetRepository
- Specified by:
getTargetRepositoryin classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) - Overrides:
getQueryLookupStrategyin classRepositoryFactorySupport
-