com.filenet.api.action
Class ChangeClass
- java.lang.Object
-
- com.filenet.api.action.PendingAction
-
- com.filenet.api.action.ChangeClass
-
- All Implemented Interfaces:
- java.io.Serializable
public class ChangeClass extends PendingAction
Represents a pending action for changing the class of a Content Engine object. When an object calls thechangeClass
method, the API automatically creates an instance of theChangeClass
class and adds it to the underlying object's collection ofPendingAction
objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ChangeClass(java.lang.String newClass)
Creates a new instance of aChangeClass
pending action object.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getNewClass()
Returns the symbolic name (if a symbolic name was entered in theChangeClass
constructor) or ID (if an ID was entered in theChangeClass
constructor) of the new class with which the underlying object of this pending action has been associated.-
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
-
ChangeClass
public ChangeClass(java.lang.String newClass)
Creates a new instance of aChangeClass
pending action object.- Parameters:
newClass
- AString
specifying the symbolic name (orClassNames
constant) or ID (orGUIDConstants
constant) of the new class.- Throws:
E_REQUIRED_VALUE_ABSENT
- if the newClass parameter is null or an empty string. Thrown when you you call thesave
method.E_BAD_CLASSID
- if the new class is not the same object type as the old class or the table ID of the new class is not the same as the old class. Thrown when you call thesave
method.E_NOT_SUPPORTED
- if the old class is not subclassable by the user or the object is a new or unpersisted object. Thrown when you call thesave
method.E_NOT_CREATABLE
- if the new class does not allow the user to create instances. Thrown when you call thesave
method.
-
-
Method Detail
-
getNewClass
public java.lang.String getNewClass()
Returns the symbolic name (if a symbolic name was entered in theChangeClass
constructor) or ID (if an ID was entered in theChangeClass
constructor) of the new class with which the underlying object of this pending action has been associated.- Returns:
- A
String
specifying the symbolic name or ID of the new class.
-
-