Package de.dlr.proseo.usermgr.dao
Schnittstelle GroupRepository
- Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<Group,
,Long> org.springframework.data.jpa.repository.JpaRepository<Group,
,Long> org.springframework.data.repository.PagingAndSortingRepository<Group,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Group>
,org.springframework.data.repository.Repository<Group,
Long>
@Repository
public interface GroupRepository
extends org.springframework.data.jpa.repository.JpaRepository<Group,Long>
Data Access Object for the Group class
- Autor:
- Dr. Thomas Bassler *
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindByAuthority
(String authority) Get all user groups having the given authority (as directly assigned authority)findByGroupName
(String groupName) Get the user group with the given group namefindByMissionCode
(String missionCode) Get all user groups for the given missionVon Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository
findAll
Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Methodendetails
-
findByGroupName
Get the user group with the given group name- Parameter:
groupName
- the name of the user group- Gibt zurück:
- the unique processing group identified by the given group name
-
findByMissionCode
@Query("select g from groups g where g.groupName like concat(?1, \'-%\')") List<Group> findByMissionCode(String missionCode) Get all user groups for the given mission- Parameter:
missionCode
- the code of the mission- Gibt zurück:
- a list of user groups with group names starting with the mission code
-
findByAuthority
@Query("select g from groups g join g.groupAuthorities ga where ga.authority = ?1") List<Group> findByAuthority(String authority) Get all user groups having the given authority (as directly assigned authority)- Parameter:
authority
- the authority (name) to check for- Gibt zurück:
- a list of user groups with the given authority
-