public interface Lockable
A lock holds a lock owner and lock creation time.
Lock setLock(Lock lock) throws DocumentException
lock
- the lock to setDocumentException
Lock removeLock(String owner) throws DocumentException
the
- owner to check, or null
for no checknull
if there was no lock or if removal succeeded, or a
lock if it blocks removal due to owner mismatchDocumentException
Lock getLock() throws DocumentException
DocumentException
Copyright © 2013 Nuxeo SA. All Rights Reserved.