public final class LockState extends Object implements Serializable
additionalInfo field - objects assigned
to this field MUST implement hashCode and equals methods properly.public static LockState createLock(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 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 NodeRef getNodeRef()
public LockType getLockType()
public String getOwner()
public Date getExpires()
public Lifetime getLifetime()
public String getAdditionalInfo()
Copyright © 2005–2020 Alfresco Software. All rights reserved.