Package org.nuxeo.ecm.core.api
Class Lock
- java.lang.Object
-
- 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CalendargetCreated()The creation time of the lock.booleangetFailed()The failure state, used for removal results.StringgetOwner()The owner of the lock.inthashCode()StringtoString()
-
-
-
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
-
-