本文整理匯總了Java中org.springframework.data.elasticsearch.repository.ElasticsearchRepository類的典型用法代碼示例。如果您正苦於以下問題:Java ElasticsearchRepository類的具體用法?Java ElasticsearchRepository怎麽用?Java ElasticsearchRepository使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ElasticsearchRepository類屬於org.springframework.data.elasticsearch.repository包,在下文中一共展示了ElasticsearchRepository類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getTargetRepository
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; //導入依賴的package包/類
@Override
protected Object getTargetRepository(RepositoryInformation metadata) {
Class<?> domainType = metadata.getDomainType();
ElasticsearchEntityInformation<?, Serializable> entityInformation =
getEntityInformation(domainType);
if (!hasAclStrategyAnnotation(domainType)) {
return getTargetRepositoryViaReflection(metadata, entityInformation,
elasticsearchOperations);
}
// invokes
// com.github.lothar.security.acl.elasticsearch.repository.AclElasticsearchRepository.AclNumberKeyedRepository(ElasticsearchEntityInformation<T,
// ID>, ElasticsearchOperations, AclFilterProvider)
ElasticsearchRepository<?, ?> repository = getTargetRepositoryViaReflection(metadata,
entityInformation, elasticsearchOperations, filterProvider);
logger.debug("Created {}", repository);
return repository;
}
開發者ID:lordlothar99,項目名稱:strategy-spring-security-acl,代碼行數:20,代碼來源:AclElasticsearchRepositoryFactoryBean.java
示例2: AbstractService
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; //導入依賴的package包/類
public AbstractService(ElasticsearchRepository<T, String> repository) {
this.repository = repository;
}
示例3: PaginationAbstactService
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; //導入依賴的package包/類
public PaginationAbstactService(ElasticsearchRepository<T, Serializable> repository) {
this.repository = repository;
}