接口 DataRuleService<T,​ID extends java.io.Serializable>

  • 所有已知实现类:
    BaseService

    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)
      给传入的条件拼接数据范围条件
    • 方法详细资料

      • withDataRule

        org.springframework.data.jpa.domain.Specification<T> withDataRule​(org.springframework.data.jpa.domain.Specification<T> specification)
        给传入的条件拼接数据范围条件
        参数:
        specification - sp
        返回:
        已拼接数据权限的条件
      • findAllWithDataRule

        java.util.List<T> findAllWithDataRule​(org.springframework.data.jpa.domain.Specification<T> specification)
        根据传入的查询条件拼接上数据范围条件后查询
        参数:
        specification - sp
        返回:
        带权限范围的数据集合
      • findAllWithDataRule

        org.springframework.data.domain.Page<T> findAllWithDataRule​(org.springframework.data.jpa.domain.Specification<T> specification,
                                                                    org.springframework.data.domain.Pageable pageable)
        根据传入的查询条件拼接上数据范围条件后查询(分页)
        参数:
        specification - sp
        pageable - p
        返回:
        带权限范围的数据集合
      • findAllWithDataRule

        java.util.List<T> findAllWithDataRule​(T entity)
        根据对象模板,查询带数据权限范围的集合
        参数:
        entity - p
        返回:
        List T
      • findAllWithDataRule

        org.springframework.data.domain.Page<T> findAllWithDataRule​(T entity,
                                                                    org.springframework.data.domain.Pageable pageable)
        根据对象模板,查询带数据权限范围的集合(分页)
        参数:
        entity - T
        pageable - page
        返回:
        Page T
      • findAllWithDataRule

        java.util.List<T> findAllWithDataRule​(T entity,
                                              org.springframework.data.domain.ExampleMatcher matcher)
        根据对象模板,和指定的 Matcher 查询带数据权限范围的集合
        参数:
        entity - p
        matcher - 一般用来 ignore一组不需要自动匹配的属性
        返回:
        List T
      • findAllWithDataRule

        org.springframework.data.domain.Page<T> findAllWithDataRule​(T entity,
                                                                    org.springframework.data.domain.ExampleMatcher matcher,
                                                                    org.springframework.data.domain.Pageable pageable)
        根据对象模板,和指定的 Matcher 查询带数据权限范围的集合(分页)
        参数:
        entity - p
        matcher - 一般用来 ignore一组不需要自动匹配的属性
        pageable - page
        返回:
        Page T