public final class LockState
extends java.lang.Object
implements java.io.Serializable
LockState.additionalInfo field - objects assigned
to this field MUST implement hashCode and equals methods properly.| Modifier and Type | Method and Description |
|---|---|
static LockState |
createLock(org.alfresco.service.cmr.repository.NodeRef nodeRef,
LockType lockType,
java.lang.String owner,
java.util.Date expires,
Lifetime lifetime,
java.lang.String additionalInfo) |
static LockState |
createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
static LockState |
createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String additionalInfo) |
static LockState |
createWithAdditionalInfo(LockState lockState,
java.lang.String additionalInfo) |
static LockState |
createWithExpires(LockState lockState,
java.util.Date expires) |
static LockState |
createWithLifetime(LockState lockState,
Lifetime lifetime) |
static LockState |
createWithLockType(LockState lockState,
LockType lockType) |
static LockState |
createWithOwner(LockState lockState,
java.lang.String owner) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalInfo() |
java.util.Date |
getExpires() |
Lifetime |
getLifetime() |
LockType |
getLockType() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
java.lang.String |
getOwner() |
int |
hashCode() |
boolean |
isLockInfo()
Returns whether this
LockState is for a lock or whether there is no
lock defined for the node. |
java.lang.String |
toString() |
public static LockState createLock(org.alfresco.service.cmr.repository.NodeRef nodeRef, LockType lockType, java.lang.String owner, java.util.Date expires, Lifetime lifetime, java.lang.String additionalInfo)
public static LockState createWithLockType(LockState lockState, LockType lockType)
public static LockState createWithOwner(LockState lockState, java.lang.String owner)
public static LockState createWithExpires(LockState lockState, java.util.Date expires)
public static LockState createWithLifetime(LockState lockState, Lifetime lifetime)
public static LockState createWithAdditionalInfo(LockState lockState, java.lang.String additionalInfo)
public static LockState createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String additionalInfo)
public static LockState createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public boolean isLockInfo()
LockState is for a lock or whether there is no
lock defined for the node. If a lock is defined for a node, that does not mean that
the node is locked - the LockService must be used to determine that.public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
public LockType getLockType()
public java.lang.String getOwner()
public java.util.Date getExpires()
public Lifetime getLifetime()
public java.lang.String getAdditionalInfo()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.