Interface PermissionRepository<T extends tech.corefinance.common.model.AbstractPermission>

All Superinterfaces:
CommonResourceRepository<T,String>, org.springframework.data.repository.CrudRepository<T,String>, org.springframework.data.repository.ListCrudRepository<T,String>, org.springframework.data.repository.ListPagingAndSortingRepository<T,String>, org.springframework.data.repository.PagingAndSortingRepository<T,String>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,String>

@NoRepositoryBean public interface PermissionRepository<T extends tech.corefinance.common.model.AbstractPermission> extends CommonResourceRepository<T,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByRoleIdAndResourceType(String roleId, String resourceType, org.springframework.data.domain.Sort sort)
     
    findFirstByRoleIdAndResourceTypeAndActionAndUrlAndRequestMethod(String roleId, String resourceType, String action, String url, org.springframework.web.bind.annotation.RequestMethod requestMethod)
     
    org.springframework.data.domain.Page<T>
    searchBy(String searchText, org.springframework.data.domain.Pageable pageRequest)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • findFirstByRoleIdAndResourceTypeAndActionAndUrlAndRequestMethod

      Optional<T> findFirstByRoleIdAndResourceTypeAndActionAndUrlAndRequestMethod(String roleId, String resourceType, String action, String url, org.springframework.web.bind.annotation.RequestMethod requestMethod)
    • findAllByRoleIdAndResourceType

      List<T> findAllByRoleIdAndResourceType(String roleId, String resourceType, org.springframework.data.domain.Sort sort)
    • searchBy

      org.springframework.data.domain.Page<T> searchBy(@Param("search") String searchText, org.springframework.data.domain.Pageable pageRequest)