Interface RoleRightContextRepository

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

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

    Modifier and Type
    Method
    Description
    long
    countContextPresenceForRightRole(String roleName, String rightName, String context)
     
    listContextsForRightRole(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

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