public interface GroupRepository extends SearchRepository<GroupImpl,Integer>
Modifier and Type | Method and Description |
---|---|
List<GroupImpl> |
findByDefaultAdmin(boolean defaultAdmin) |
GroupImpl |
findByName(String name) |
List<GroupImpl> |
findGroupsForApplicationRole(Integer applicationRoleId) |
GroupImpl |
getGroup(Integer groupId) |
List<Integer> |
getGroupIdsForNames(List<String> groupNames) |
createSearchQuery, detach, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search, search
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
@Query(value="select g.id from GroupImpl g where g.name in (?1)") List<Integer> getGroupIdsForNames(List<String> groupNames)
@Query(value="select g from GroupImpl g join g.roles r where r.id = ?1") List<GroupImpl> findGroupsForApplicationRole(Integer applicationRoleId)
@Query(value="select g from GroupImpl g left join fetch g.roles r left join fetch r.permissions p where g.id = ?1") GroupImpl getGroup(Integer groupId)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.