true);
if (!locksAll.hasMoreElements()) {
return;
}
NodeLock nodeLock = findMatchingNodeLock(false);
if (nodeLock != null) {
if (!lock.checkLockOwner(slideToken, nodeLock)) {
throw new PreconditionViolationException(
new ViolatedPrecondition(
"lock-owner-or-unlock-privilege",
WebdavStatus.SC_FORBIDDEN, UNLOCK_NOT_ALLOWED),
resourcePath);
}
} else {
nodeLock = findMatchingNodeLock(true);
if (nodeLock != null) {
throw new PreconditionViolationException(
new ViolatedPrecondition("lock-root",
WebdavStatus.SC_CONFLICT, IS_NOT_LOCK_ROOT
+ getFullPath(nodeLock.getObjectUri())),
resourcePath);
} else {
throw new PreconditionViolationException(
new ViolatedPrecondition("valid-lock-token",
WebdavStatus.SC_CONFLICT, INVALID_LOCK_TOKEN),