Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api
Class Lock

java.lang.Object
  extended by org.nuxeo.ecm.core.api.Lock
All Implemented Interfaces:
Serializable

public class Lock
extends Object
implements Serializable

Information about a lock set on a document.

The lock information holds the owner, which is a user id, and the lock creation time.

See Also:
Serialized Form

Constructor Summary
Lock(Lock lock, boolean failed)
           
Lock(String owner, Calendar created)
           
 
Method Summary
 Calendar getCreated()
          The creation time of the lock.
 boolean getFailed()
          The failure state, used for removal results.
 String getOwner()
          The owner of the lock.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lock

public Lock(String owner,
            Calendar created)

Lock

public Lock(Lock lock,
            boolean failed)
Method Detail

getOwner

public String getOwner()
The owner of the lock.

Returns:
the owner, which is a user id

getCreated

public Calendar getCreated()
The creation time of the lock.

Returns:
the creation time

getFailed

public boolean getFailed()
The failure state, used for removal results.

Returns:
the failure state

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.