Interface AclObjectIdentityPersistence

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      AclObjectIdentity findByObjectIdAndClassname​(long objectIdIdentity, String aclClass)
      Find by object id identity and class name.
      List<AclObjectIdentity> findByParentObject​(AclObjectIdentity parentObject)  
      void resetChildrenOfOID​(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
      • 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 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 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