public interface DataRuleService<T,ID extends java.io.Serializable>
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<T> |
findAllWithDataRule(org.springframework.data.jpa.domain.Specification<T> specification)
根据传入的查询条件拼接上数据范围条件后查询
|
org.springframework.data.domain.Page<T> |
findAllWithDataRule(org.springframework.data.jpa.domain.Specification<T> specification,
org.springframework.data.domain.Pageable pageable)
根据传入的查询条件拼接上数据范围条件后查询(分页)
|
java.util.List<T> |
findAllWithDataRule(T entity)
根据对象模板,查询带数据权限范围的集合
|
java.util.List<T> |
findAllWithDataRule(T entity,
org.springframework.data.domain.ExampleMatcher matcher)
根据对象模板,和指定的 Matcher 查询带数据权限范围的集合
|
org.springframework.data.domain.Page<T> |
findAllWithDataRule(T entity,
org.springframework.data.domain.ExampleMatcher matcher,
org.springframework.data.domain.Pageable pageable)
根据对象模板,和指定的 Matcher 查询带数据权限范围的集合(分页)
|
org.springframework.data.domain.Page<T> |
findAllWithDataRule(T entity,
org.springframework.data.domain.Pageable pageable)
根据对象模板,查询带数据权限范围的集合(分页)
|
org.springframework.data.jpa.domain.Specification<T> |
withDataRule(org.springframework.data.jpa.domain.Specification<T> specification)
给传入的条件拼接数据范围条件
|
org.springframework.data.jpa.domain.Specification<T> withDataRule(org.springframework.data.jpa.domain.Specification<T> specification)
specification - spjava.util.List<T> findAllWithDataRule(org.springframework.data.jpa.domain.Specification<T> specification)
specification - sporg.springframework.data.domain.Page<T> findAllWithDataRule(org.springframework.data.jpa.domain.Specification<T> specification, org.springframework.data.domain.Pageable pageable)
specification - sppageable - pjava.util.List<T> findAllWithDataRule(T entity)
entity - porg.springframework.data.domain.Page<T> findAllWithDataRule(T entity, org.springframework.data.domain.Pageable pageable)
entity - Tpageable - pagejava.util.List<T> findAllWithDataRule(T entity, org.springframework.data.domain.ExampleMatcher matcher)
entity - pmatcher - 一般用来 ignore一组不需要自动匹配的属性org.springframework.data.domain.Page<T> findAllWithDataRule(T entity, org.springframework.data.domain.ExampleMatcher matcher, org.springframework.data.domain.Pageable pageable)
entity - pmatcher - 一般用来 ignore一组不需要自动匹配的属性pageable - page