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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AclObjectIdentityfindByObjectIdAndClassname(long objectIdIdentity, String aclClass)Find by object id identity and class name.List<AclObjectIdentity>findByParentObject(AclObjectIdentity parentObject)voidresetChildrenOfOID(AclObjectIdentity oID)Clear 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, 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
-
-
-
-
Method Detail
-
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
List<AclObjectIdentity> findByParentObject(AclObjectIdentity parentObject)
-
-