public interface AclEntryPersistence extends org.springframework.data.jpa.repository.JpaRepository<AclEntry,Long>
| Modifier and Type | Method and Description |
|---|---|
List<AclEntry> |
findByObjectIdentity(AclObjectIdentity aclObjectIdentity) |
List<AclEntry> |
findByObjectIdentityAndObjectClassIdAndSid(long objectIdentityId,
String aclClass,
String sid) |
List<AclEntry> |
findBySidAndAclClass(String sid,
String aclClass) |
Long |
findBySidAndObjectIdentityAndMask(String sid,
long objectIdIdentity,
long mask,
String className) |
List<Long> |
findObjectIdentitiesBySidAndAclClassAndMask(String sid,
String aclClass,
long mask) |
Long |
getMaxAceOrderForObjectEntity(long aclObjectEntityId)
Calculates max.
|
List<AclSid> |
getSids(long objectIdIdentity,
String aclClass) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select ae from AclEntry ae where ae.aclObjectIdentity = :aclObjectIdentity") List<AclEntry> findByObjectIdentity(@Param(value="aclObjectIdentity") AclObjectIdentity aclObjectIdentity)
@Query(value="select ae from AclEntry ae join ae.aclObjectIdentity aoi join aoi.aclClass ac join ae.aclSid sid where aoi.objectIdIdentity=?1 and ac.aclClass=?2 and sid.sid=?3") List<AclEntry> findByObjectIdentityAndObjectClassIdAndSid(long objectIdentityId, String aclClass, String sid)
objectIdentityId - - id of domain objectaclClass - - domain classsid - - user's email@Query(value="select ae from AclEntry ae join ae.aclObjectIdentity aoi join aoi.aclClass ac join ae.aclSid sid where sid.sid=?1 and ac.aclClass=?2") List<AclEntry> findBySidAndAclClass(String sid, String aclClass)
sid - - user's emailaclClass - - class of domain object@Query(value="select count(ae) from AclEntry ae join ae.aclObjectIdentity aoi join aoi.aclClass ac join ae.aclSid sid where sid.sid=?1 and aoi.objectIdIdentity=?2 and ae.mask=?3 and ac.aclClass=?4") Long findBySidAndObjectIdentityAndMask(String sid, long objectIdIdentity, long mask, String className)
sid - - user's emailobjectIdIdentity - - id of domain objectmask - - mask for permissionsclassName - - class name@Query(value="select aoi.objectIdIdentity from AclEntry ae join ae.aclObjectIdentity aoi join aoi.aclClass ac join ae.aclSid sid where sid.sid=?1 and ac.aclClass=?2 and ae.mask=?3") List<Long> findObjectIdentitiesBySidAndAclClassAndMask(String sid, String aclClass, long mask)
sid - - user's emailaclClass - - class of domain objectmask - - mask for 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 join ae.aclObjectIdentity aoi join aoi.aclClass ac where aoi.objectIdIdentity = :objectIdIdentity and ac.aclClass = :aclClass") List<AclSid> getSids(@Param(value="objectIdIdentity") long objectIdIdentity, @Param(value="aclClass") String aclClass)
Copyright © 2017 Global Crop Diversity Trust. All rights reserved.