Interface AclSidPersistence
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AclSid,,Long> org.springframework.data.jpa.repository.JpaRepository<AclSid,,Long> org.springframework.data.repository.PagingAndSortingRepository<AclSid,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<AclSid>,org.springframework.data.repository.Repository<AclSid,Long>
public interface AclSidPersistence
extends org.springframework.data.jpa.repository.JpaRepository<AclSid,Long>
The Interface AclSidPersistence.
-
Method Summary
Modifier and TypeMethodDescriptionfindBySidAndPrincipal(String sid, boolean principal) Find by sid and principal.Gets the sid id.List SIDs of authorities (roles).List ACL SIDs with internal identifiers.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findBySidAndPrincipal
Find by sid and principal.- Parameters:
sid- the sidprincipal- the principal- Returns:
- the acl sid
-
listById
@Query("select distinct sid from AclSid sid where sid.id in :ids") List<AclSid> listById(@Param("ids") Iterable<Long> ids) List ACL SIDs with internal identifiers.- Parameters:
ids- internal (database) SID identifiers- Returns:
- ACL SIDs for specified identifiers
-
listAuthoritySids
List SIDs of authorities (roles).- Returns:
- the list of
AclSidfor registered authorities
-
getSidId
@Query("select sid.id from AclSid sid where sid.sid = :sid") Long getSidId(@Param("sid") String sid) Gets the sid id.- Parameters:
sid- the sid- Returns:
- the sid id
-