/** * Checks if this node holds a lock. * <p> * The default implementation calls {@link Node#getLock()} and returns * <code>true</code> iff the holding node of the lock is the same as this * node. * * @return <code>true</code> if this node holds a lock, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean holdsLock() throws RepositoryException { try { return isSame(getLock().getNode()); } catch (LockException e) { return false; } }
/** * Checks if this node holds a lock. * <p> * The default implementation calls {@link Node#getLock()} and returns * <code>true</code> iff the holding node of the lock is the same as this * node. * * @return <code>true</code> if this node holds a lock, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean holdsLock() throws RepositoryException { try { return isSame(getLock().getNode()); } catch (LockException e) { return false; } }
/** * Checks if this node holds a lock. * <p> * The default implementation calls {@link Node#getLock()} and returns * <code>true</code> iff the holding node of the lock is the same as this * node. * * @return <code>true</code> if this node holds a lock, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean holdsLock() throws RepositoryException { try { return isSame(getLock().getNode()); } catch (LockException e) { return false; } }
/** * Checks if this node holds a lock. * <p> * The default implementation calls {@link Node#getLock()} and returns * <code>true</code> iff the holding node of the lock is the same as this * node. * * @return <code>true</code> if this node holds a lock, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean holdsLock() throws RepositoryException { try { return isSame(getLock().getNode()); } catch (LockException e) { return false; } }