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>

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RoleRight getRoleRight​(String roleName, String rightName)  
      List<String> getRoleRightNamesByRoleName​(String name)  
      • 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, 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 Detail

      • 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)