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 Type
    Method
    Description
    findByObjectIdAndClassname(long objectIdIdentity, String aclClass)
    Find by object id identity and class name.
     
    void
    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

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne

    Methods 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 id
      aclClass - 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)