Class PendingAction
- java.lang.Object
-
- com.filenet.api.action.PendingAction
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ApplySecurityTemplate, ChangeClass, ChangeState, Checkin, Checkout, Create, Delete, DemoteVersion, Freeze, InstallAddOn, Lock, MoveContent, PromoteVersion, RaiseEvent, Recover, TakeFederatedOwnership, Unlock, Update
public class PendingAction extends java.lang.Object implements java.io.SerializableProvides the base class for all of the other classes in this package.A pending action represents an intended change that has not yet been committed to an object on the server. When you call a method that changes an underlying object, a subclass of
PendingActionis created that corresponds to the action. For example, callingDocument.checkoutcreates aCheckoutsubclass. The pending action is added to the underlying object's ordered list of pending actions (an automatically-generatedPendingActionscollection). For each subsequent action (such as locking and unlocking, changing the class, freezing, and so on) taken on the object, an item is added to the pending actions list. When you commit the object, for example, by calling thesavemethod or, in the case of batch operations, by committing the batch, the underlying object (and its collection of pending actions) is sent to the server and changes are written to the repository in the order in which they occur in the object's pending actions list.A
PendingActionobject has a parameter bag that accompanies the action taken on the underlying object. ThePendingActionclass providesgetandputmethods for retrieving and setting parameters in the parameter bag. For example, if you change the class of an object, the identity of the new class is communicated as a parameter. (Note: Parameter names specified as input to these methods may not be documented completely. It is expected that you will use the type-safe subclasses instead of directly working with the underlyingPendingActionobjects. The names of valid parameters can be deduced from the formal arguments of constructors forPendingActionsubclasses.)You can retrieve an object's accumulated pending actions by calling its
getPendingActionsmethod.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description BinaryListgetBinaryListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.byte[]getBinaryValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.BooleanListgetBooleanListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.java.lang.BooleangetBooleanValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.DateTimeListgetDateTimeListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.java.util.DategetDateTimeValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.EngineObjectgetEngineObjectValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.Float64ListgetFloat64ListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.java.lang.DoublegetFloat64Value(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.IdListgetIdListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.IdgetIdValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.Integer32ListgetInteger32ListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.java.lang.IntegergetInteger32Value(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.java.lang.ObjectgetObjectValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.StringListgetStringListValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.java.lang.StringgetStringValue(java.lang.String name)Locates the named parameter in the parameter bag and returns the value of the object it holds.voidputObjectValue(java.lang.String name, java.lang.Object v)Adds an object as the value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, BinaryList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, java.lang.Boolean v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, BooleanList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, byte[] v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, java.util.Date v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, DateTimeList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, java.lang.Double v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, EngineObject v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, Float64List v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, Id v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, IdList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, java.lang.Integer v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, Integer32List v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, java.lang.String v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.voidputValue(java.lang.String name, StringList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.java.lang.StringtoString()Returns aStringrepresentation of thisPendingActioninstance.
-
-
-
Method Detail
-
putObjectValue
public void putObjectValue(java.lang.String name, java.lang.Object v)Adds an object as the value for the named parameter to the parameter bag for thisPendingActionobject. If the named parameter already exists, it is overwritten with the new value.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AnObjectthat specifies the value for the parameter.
-
getObjectValue
public java.lang.Object getObjectValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an
Object. Returnsnullif the parameter cannot be found in the parameter bag.
-
getStringValue
public java.lang.String getStringValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
String. Returnsnullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, java.lang.String v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AStringthat specifies the value for the parameter.
-
getBooleanValue
public java.lang.Boolean getBooleanValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
Boolean. Returnsnullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, java.lang.Boolean v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- ABooleanthat specifies the value for the parameter.
-
getFloat64Value
public java.lang.Double getFloat64Value(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
Double. Returnsnullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, java.lang.Double v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to retrieve.v- ADoublethat specifies the value for the parameter.
-
getInteger32Value
public java.lang.Integer getInteger32Value(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an
Integer. Returnsnullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, java.lang.Integer v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to retrieve.v- AnIntegerthat specifies the value for the parameter.
-
getIdValue
public Id getIdValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an
Idobject. Returnsnullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, Id v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AnIdobject that specifies the value for the parameter.
-
getBinaryValue
public byte[] getBinaryValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an array of bytes. Returns
nullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, byte[] v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the property bag.v- An array of bytes that specifies the value for the parameter.
-
getDateTimeValue
public java.util.Date getDateTimeValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
Dateobject. Returnsnullif the parameter cannot be found in the parameter bag. - Throws:
- if the parameter is not of the type being requested.java.lang.ClassCastException
-
putValue
public void putValue(java.lang.String name, java.util.Date v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- ADateobject that specifies the value for the parameter.
-
getEngineObjectValue
public EngineObject getEngineObjectValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an
EngineObjectobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, EngineObject v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the property bag.v- AnEngineObjectobject that specifies the value for the parameter.
-
getStringListValue
public StringList getStringListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
StringListobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, StringList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AStringListthat specifies the value for the parameter.
-
getBooleanListValue
public BooleanList getBooleanListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringcontaining the parameter name.- Returns:
- The value of the parameter as a
BooleanListobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, BooleanList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- ABooleanListthat specifies the value for the parameter.
-
getInteger32ListValue
public Integer32List getInteger32ListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an
Integer32Listobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, Integer32List v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AnInteger32Listthat specifies the value for the parameter.
-
getFloat64ListValue
public Float64List getFloat64ListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
Float64Listobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, Float64List v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AFloat64Listthat specifies the value for the parameter.
-
getDateTimeListValue
public DateTimeList getDateTimeListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
DateTimeListobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, DateTimeList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- ADateTimeListthat specifies the value for the parameter.
-
getBinaryListValue
public BinaryList getBinaryListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as a
BinaryListobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, BinaryList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- ABinaryListthat specifies the value for the parameter.
-
getIdListValue
public IdList getIdListValue(java.lang.String name)
Locates the named parameter in the parameter bag and returns the value of the object it holds.- Parameters:
name- AStringthat specifies the parameter name to retrieve.- Returns:
- The value of the parameter as an
IdListobject. Returnsnullif the parameter cannot be found in the parameter bag.
-
putValue
public void putValue(java.lang.String name, IdList v)Adds a value for the named parameter to the parameter bag for thisPendingActionobject.- Parameters:
name- AStringthat specifies the parameter name to add to the parameter bag.v- AnIdListthat specifies the value for the parameter.
-
toString
public java.lang.String toString()
Returns aStringrepresentation of thisPendingActioninstance. The string (in the format �Class= Values= �) consists of the name of the class of which thisPendingActionis an instance and the parameter values from its parameter bag. For example, for a pending action for creating an object, this method returns the class name, Create, followed by the parameter values for class ID, object ID, and so on.- Overrides:
toStringin classjava.lang.Object- Returns:
- A
Stringrepresentation of thisPendingActioninstance.
-
-