Interface RoleRightRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<RoleRight,Long>, org.springframework.data.jpa.repository.JpaRepository<RoleRight,Long>, org.springframework.data.repository.PagingAndSortingRepository<RoleRight,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<RoleRight>, org.springframework.data.repository.Repository<RoleRight,Long>

public interface RoleRightRepository extends org.springframework.data.jpa.repository.JpaRepository<RoleRight,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    getRoleRight(String roleName, String rightName)
     
     

    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.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

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

    findAll

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

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

    • getRoleRightNamesByRoleName

      @Query("SELECT rr.name FROM RoleRight rr WHERE rr.role.name = ?1") List<String> getRoleRightNamesByRoleName(String name)
    • getRoleRight

      @Query("SELECT rr FROM RoleRight rr WHERE rr.name = ?2 AND rr.role.name = ?1") RoleRight getRoleRight(String roleName, String rightName)