Jackalope\Lock\LockManager::holdsLock PHP Method

holdsLock() public method

{@inheritDoc}
public holdsLock ( $absPath )
    public function holdsLock($absPath)
    {
        if (!$this->session->nodeExists($absPath)) {
            throw new PathNotFoundException("The node '{$absPath}' does not exist");
        }
        $node = $this->session->getNode($absPath);
        return $node->isNodeType('mix:lockable') && $node->hasProperty('jcr:lockIsDeep') && $node->hasProperty('jcr:lockOwner');
    }