public final class LockState extends Object implements Serializable
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,
String owner,
Date expires,
Lifetime lifetime,
String additionalInfo) |
static LockState |
createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
static LockState |
createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String additionalInfo) |
static LockState |
createWithAdditionalInfo(LockState lockState,
String additionalInfo) |
static LockState |
createWithExpires(LockState lockState,
Date expires) |
static LockState |
createWithLifetime(LockState lockState,
Lifetime lifetime) |
static LockState |
createWithLockType(LockState lockState,
LockType lockType) |
static LockState |
createWithOwner(LockState lockState,
String owner) |
boolean |
equals(Object obj) |
String |
getAdditionalInfo() |
Date |
getExpires() |
Lifetime |
getLifetime() |
LockType |
getLockType() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
String |
getOwner() |
int |
hashCode() |
boolean |
isLockInfo()
Returns whether this
LockState is for a lock or whether there is no
lock defined for the node. |
String |
toString() |
public static LockState createLock(org.alfresco.service.cmr.repository.NodeRef nodeRef, LockType lockType, String owner, Date expires, Lifetime lifetime, String additionalInfo)
public static LockState createWithLockType(LockState lockState, LockType lockType)
public static LockState createWithLifetime(LockState lockState, Lifetime lifetime)
public static LockState createWithAdditionalInfo(LockState lockState, String additionalInfo)
public static LockState createUnlocked(org.alfresco.service.cmr.repository.NodeRef nodeRef, 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 String getOwner()
public Date getExpires()
public Lifetime getLifetime()
public String getAdditionalInfo()
Copyright © 2005–2017 Alfresco Software. All rights reserved.