本文整理汇总了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;
}