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 Type
    Method
    Description
    findBySidAndPrincipal(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, 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

    • findBySidAndPrincipal

      AclSid findBySidAndPrincipal(String sid, boolean principal)
      Find by sid and principal.
      Parameters:
      sid - the sid
      principal - 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

      @Query("select sid from AclSid sid where sid.principal = false") List<AclSid> listAuthoritySids()
      List SIDs of authorities (roles).
      Returns:
      the list of AclSid for 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