com.filenet.api.action
Class Lock
- java.lang.Object
-
- com.filenet.api.action.PendingAction
-
- com.filenet.api.action.Lock
-
- All Implemented Interfaces:
- java.io.Serializable
public class Lock extends PendingAction
Represents a pending action for locking an object. Calling a method that locks an object automatically creates an instance ofLock, which is then added to the underlying object'sPendingActionscollection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Lock(java.lang.Long timeOut, java.lang.String owner)Creates a new instance of aLockpending action object initialized with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetOwner()Returns aStringcontaining the intended value of theLockOwnerproperty of the underlying object.java.lang.LonggetTimeout()Returns the number of seconds that the underlying object is intended to be locked.-
Methods inherited from class com.filenet.api.action.PendingAction
getBinaryListValue, getBinaryValue, getBooleanListValue, getBooleanValue, getDateTimeListValue, getDateTimeValue, getEngineObjectValue, getFloat64ListValue, getFloat64Value, getIdListValue, getIdValue, getInteger32ListValue, getInteger32Value, getObjectValue, getStringListValue, getStringValue, putObjectValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, toString
-
-
-
-
Constructor Detail
-
Lock
public Lock(java.lang.Long timeOut, java.lang.String owner)Creates a new instance of aLockpending action object initialized with the specified parameters. You typically do not need to explicitly create aLockinstance. Calling lock-related methods creates an instance ofLockand adds it to the underlying object'sPendingActionscollection. (See thelock,updateLock,fetchAndLockObject, andunlockmethods.)- Parameters:
timeOut- The new value for the underlying object'sLockTimeoutproperty. The timeout value is the number of seconds that the object is intended to be locked.owner- AStringspecifying the intended owner of the lock. The value of this property is simply a custom string that has no real effect in determining the user of the lock. The owner specified by this property is not validated against any user or group known to the Content Engine. This value can be any string, and is used to populate the underlying object'sLockOwnerproperty. It does not represent the actual user of the lock, which is recorded internally by the server. If not supplied, defaults to the short principal name of the requesting user.- Throws:
E_REQUIRED_VALUE_ABSENT- iftimeoutparameter value isnull. (Thrown by the server on a subsequentcall.)save
-
-
Method Detail
-
getTimeout
public java.lang.Long getTimeout()
Returns the number of seconds that the underlying object is intended to be locked.- Returns:
- The lock timeout value.
-
getOwner
public java.lang.String getOwner()
Returns aStringcontaining the intended value of theLockOwnerproperty of the underlying object.- Returns:
- A
Stringcontaining the name of the user holding the lock.
-
-