public interface AclEntryPersistence extends org.springframework.data.jpa.repository.JpaRepository<AclEntry,Long>
| Modifier and Type | Method and Description |
|---|---|
<T extends AclSid> |
deleteForSid(T sid)
Delete AclEntries for a SID.
|
List<AclEntry> |
findByObjectIdentity(AclObjectIdentity aclObjectIdentity)
Find by object identity.
|
List<AclEntry> |
findBySidAndObjectIdentity(AclSid sid,
AclObjectIdentity objectIdentity)
List by SID and Object Identity.
|
List<Long> |
findObjectIdentitiesForSidAndAclClassAndMask(AclSid sid,
String aclClass,
int mask)
/** Find IDs of object of aclClass for sid with specified permissions.
|
Long |
getMaxAceOrderForObjectEntity(long aclObjectEntityId)
Calculates max.
|
List<AclSid> |
getSids(AclObjectIdentity objectIdentity)
Gets the sids.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAll@Query(value="select ae from AclEntry ae where ae.aclObjectIdentity = :aclObjectIdentity") List<AclEntry> findByObjectIdentity(@Param(value="aclObjectIdentity") AclObjectIdentity aclObjectIdentity)
aclObjectIdentity - the acl object identity@Query(value="select ae from AclEntry ae where ae.aclSid = :aclSid and ae.aclObjectIdentity = :aclObjectIdentity") List<AclEntry> findBySidAndObjectIdentity(@Param(value="aclSid") AclSid sid, @Param(value="aclObjectIdentity") AclObjectIdentity objectIdentity)
sid - - SIDobjectIdentity - the ACL object identity@Query(value="select ae.aclObjectIdentity.objectIdIdentity from AclEntry ae where ae.aclSid=?1 and ae.aclObjectIdentity.aclClass.aclClass=?2 and ae.mask=?3 and ae.granting=true") List<Long> findObjectIdentitiesForSidAndAclClassAndMask(AclSid sid, String aclClass, int mask)
sid - - SIDaclClass - - class of domain objectmask - - permissions@Query(value="select max(ae.aceOrder) from AclEntry ae join ae.aclObjectIdentity aoi where aoi.id = ?1") Long getMaxAceOrderForObjectEntity(long aclObjectEntityId)
aclObjectEntityId - - id of acl_object_identity table@Query(value="select distinct ae.aclSid from AclEntry ae where ae.aclObjectIdentity = :objectIdentity") List<AclSid> getSids(@Param(value="objectIdentity") AclObjectIdentity objectIdentity)
objectIdentity - the object identity@Modifying @Query(value="delete from AclEntry ae where ae.aclSid = :sid") <T extends AclSid> int deleteForSid(@Param(value="sid") T sid)
T - type extending AclSid (User, OAuthClient)sid - the SIDCopyright © 2021 Global Crop Diversity Trust. All rights reserved.