com.filenet.api.action

Class 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 the changeClass method, the API automatically creates an instance of the ChangeClass class and adds it to the underlying object's collection of PendingAction objects.
    See Also:
    Serialized Form
    • Constructor Detail

      • ChangeClass

        public ChangeClass(java.lang.String newClass)
        Creates a new instance of a ChangeClass pending action object.
        Parameters:
        newClass - A String specifying the symbolic name (or ClassNames constant) or ID (or GUIDConstants 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 the save 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 the save 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 the save method.
        E_NOT_CREATABLE - if the new class does not allow the user to create instances. Thrown when you call the save method.
    • Method Detail

      • getNewClass

        public java.lang.String getNewClass()
        Returns the symbolic name (if a symbolic name was entered in the ChangeClass constructor) or ID (if an ID was entered in the ChangeClass 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.

© Copyright IBM Corporation 2006, 2013. All rights reserved.