Interface RoleRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<org.apache.fineract.useradministration.domain.Role,Long>, org.springframework.data.jpa.repository.JpaRepository<org.apache.fineract.useradministration.domain.Role,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<org.apache.fineract.useradministration.domain.Role>, org.springframework.data.repository.ListCrudRepository<org.apache.fineract.useradministration.domain.Role,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<org.apache.fineract.useradministration.domain.Role,Long>, org.springframework.data.repository.PagingAndSortingRepository<org.apache.fineract.useradministration.domain.Role,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<org.apache.fineract.useradministration.domain.Role>, org.springframework.data.repository.Repository<org.apache.fineract.useradministration.domain.Role,Long>

public interface RoleRepository extends org.springframework.data.jpa.repository.JpaRepository<org.apache.fineract.useradministration.domain.Role,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<org.apache.fineract.useradministration.domain.Role>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.apache.fineract.useradministration.domain.Role
     

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    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, findBy, findOne
  • Method Details

    • getCountOfRolesAssociatedWithUsers

      @Query("SELECT COUNT(a) FROM AppUser a JOIN a.roles r WHERE r.id = :roleId AND a.deleted = false") Integer getCountOfRolesAssociatedWithUsers(@Param("roleId") Long roleId)
    • getRoleByName

      @Query("SELECT role FROM Role role WHERE LOWER(role.name) = LOWER(:name)") org.apache.fineract.useradministration.domain.Role getRoleByName(@Param("name") String name)