Interface AclObjectIdentityPersistence
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AclObjectIdentity,,Long> org.springframework.data.jpa.repository.JpaRepository<AclObjectIdentity,,Long> org.springframework.data.repository.PagingAndSortingRepository<AclObjectIdentity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<AclObjectIdentity>,org.springframework.data.querydsl.QuerydslPredicateExecutor<AclObjectIdentity>,org.springframework.data.repository.Repository<AclObjectIdentity,Long>
public interface AclObjectIdentityPersistence
extends org.springframework.data.jpa.repository.JpaRepository<AclObjectIdentity,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<AclObjectIdentity>
The Interface AclObjectIdentityPersistence.
-
Method Summary
Modifier and TypeMethodDescriptionfindByObjectIdAndClassname(long objectIdIdentity, String aclClass) Find by object id identity and class name.findByParentObject(AclObjectIdentity parentObject) voidClear the parentObject of child OID that use this oID as parentObject.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, findOneMethods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findByObjectIdAndClassname
@Query("select aoi from AclObjectIdentity aoi where aoi.objectIdIdentity = :objectIdIdentity and aoi.aclClass.aclClass = :aclClass") AclObjectIdentity findByObjectIdAndClassname(@Param("objectIdIdentity") long objectIdIdentity, @Param("aclClass") String aclClass) Find by object id identity and class name.- Parameters:
objectIdIdentity- the object identity idaclClass- the acl class- Returns:
- the acl object identity
-
resetChildrenOfOID
@Modifying @Query("update AclObjectIdentity aoi set aoi.parentObject = null where aoi.parentObject = ?1") void resetChildrenOfOID(AclObjectIdentity oID) Clear the parentObject of child OID that use this oID as parentObject.- Parameters:
oID- the object identifier ID
-
findByParentObject
-