Interface RoleRightContextRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long countContextPresenceForRightRole​(String roleName, String rightName, String context)  
      List<String> listContextsForRightRole​(String roleName, String rightName)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • listContextsForRightRole

        @Query("SELECT rrc.name FROM RoleRightContext rrc WHERE rrc.roleRight.name = ?2 AND rrc.roleRight.role.name = ?1")
        List<String> listContextsForRightRole​(String roleName,
                                              String rightName)
      • countContextPresenceForRightRole

        @Query("SELECT COUNT(rrc) FROM RoleRightContext rrc WHERE rrc.name = ?3 AND rrc.roleRight.name = ?2 AND rrc.roleRight.role.name = ?1")
        long countContextPresenceForRightRole​(String roleName,
                                              String rightName,
                                              String context)