##### Coverage Report - com.ctrip.apollo.biz.repository.PrivilegeRepository

Classes in this File | Line Coverage | Branch Coverage | Complexity
PrivilegeRepository |
N/A | N/A
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo.biz.repository;
2 |  |
3 |  |
     import org.springframework.data.repository.PagingAndSortingRepository;
4 |  |
5 |  |
     import com.ctrip.apollo.biz.entity.Privilege;
6 |  |
7 |  |
     import java.util.List;
8 |  |
9 |  |
     public interface PrivilegeRepository extends PagingAndSortingRepository<Privilege, Long> {
10 |  |
11 |  |
       List<Privilege> findByNamespaceId(long namespaceId);
12 |  |
13 |  |
       List<Privilege> findByNamespaceIdAndPrivilType(long namespaceId, String privilType);
14 |  |
15 |  |
       Privilege findByNamespaceIdAndNameAndPrivilType(long namespaceId, String name, String privilType);
16 |  |
     }