com.filenet.api.util

Interface CmRecoveryItem

  • All Superinterfaces:
    EngineObject, IndependentlyPersistableObject, IndependentObject, RepositoryObject, java.io.Serializable, Subscribable


    public interface CmRecoveryItem
    extends RepositoryObject, Subscribable, IndependentlyPersistableObject
    A representative for one or more objects that have been marked for deletion. An object marked for deletion is a recoverable object, that is, an object that still exists in the object store database and can be restored.

    The recoverable objects represented by a CmRecoveryItem object consist of an object that was originally marked for deletion by a user, plus any objects referenced by object-valued properties (OVPs) of the original object. The referenced objects are marked for deletion by a cascade-delete operation performed by the server.

    In general, recoverable objects cannot be accessed directly; they can only be accessed through the CmRecoveryItem objects that represent them. A set of recovery items can be retrieved from a CmRecoveryBin object. By default, a recovery item inherits its permissions from the CmRecoveryBin object that contains it.

    A user can invoke either a recovery method or a delete method on a CmRecoveryItem object. The recovery method restores the original object that was marked for deletion and any cascade-deleted objects referenced by OVPs of the original object. The delete method, inherited from IndependentlyPersistableObject, deletes the original object and any cascade-deleted objects. The delete method functions as a purge operation, in the sense that the deleted objects are removed from the object store database and cannot be restored.

    Metadata

    See Also:
    Recovery Bin Concepts
    • Method Detail

      • get_Creator

        java.lang.String get_Creator()
        Returns the value of the Creator property. For more information, see Creator Property.
      • set_Creator

        void set_Creator(java.lang.String value)
        Sets the value of the Creator property. For more information, see Creator Property.
      • get_DateCreated

        java.util.Date get_DateCreated()
        Returns the value of the DateCreated property. For more information, see DateCreated Property.
      • set_DateCreated

        void set_DateCreated(java.util.Date value)
        Sets the value of the DateCreated property. For more information, see DateCreated Property.
      • get_LastModifier

        java.lang.String get_LastModifier()
        Returns the value of the LastModifier property. For more information, see LastModifier Property.
      • set_LastModifier

        void set_LastModifier(java.lang.String value)
        Sets the value of the LastModifier property. For more information, see LastModifier Property.
      • get_DateLastModified

        java.util.Date get_DateLastModified()
        Returns the value of the DateLastModified property. For more information, see DateLastModified Property.
      • set_DateLastModified

        void set_DateLastModified(java.util.Date value)
        Sets the value of the DateLastModified property. For more information, see DateLastModified Property.
      • get_Id

        Id get_Id()
        Returns the value of the Id property. For more information, see Id Property.
      • get_Owner

        java.lang.String get_Owner()
        Returns the value of the Owner property. For more information, see Owner Property.
      • set_Owner

        void set_Owner(java.lang.String value)
        Sets the value of the Owner property. For more information, see Owner Property.
      • get_InheritRecoveryBinPermissions

        java.lang.Boolean get_InheritRecoveryBinPermissions()
        Returns the value of the InheritRecoveryBinPermissions property. For more information, see InheritRecoveryBinPermissions Property.
      • set_InheritRecoveryBinPermissions

        void set_InheritRecoveryBinPermissions(java.lang.Boolean value)
        Sets the value of the InheritRecoveryBinPermissions property. For more information, see InheritRecoveryBinPermissions Property.
      • get_RecoverableObjectsCount

        java.lang.Integer get_RecoverableObjectsCount()
        Returns the value of the RecoverableObjectsCount property. For more information, see RecoverableObjectsCount Property.
      • get_OriginalId

        Id get_OriginalId()
        Returns the value of the OriginalId property. For more information, see OriginalId Property.
      • get_OriginalClassId

        Id get_OriginalClassId()
        Returns the value of the OriginalClassId property. For more information, see OriginalClassId Property.
      • get_OriginalName

        java.lang.String get_OriginalName()
        Returns the value of the OriginalName property. For more information, see OriginalName Property.
      • get_OriginalCreator

        java.lang.String get_OriginalCreator()
        Returns the value of the OriginalCreator property. For more information, see OriginalCreator Property.
      • get_OriginalDateCreated

        java.util.Date get_OriginalDateCreated()
        Returns the value of the OriginalDateCreated property. For more information, see OriginalDateCreated Property.
      • get_OriginalLastModifier

        java.lang.String get_OriginalLastModifier()
        Returns the value of the OriginalLastModifier property. For more information, see OriginalLastModifier Property.
      • get_OriginalDateLastModified

        java.util.Date get_OriginalDateLastModified()
        Returns the value of the OriginalDateLastModified property. For more information, see OriginalDateLastModified Property.
      • changeClass

        void changeClass(java.lang.String className)
        Changes the class of a Content Engine object. The new class must already exist and both it and the original class must be subclasses of the same base class. The changeClass method does not modify the security for an object, even if the object's current security is derived from the default security for its source class. For the object's user-defined properties, the following rules apply:
        • Any user-defined properties that exist in the new class but not in the original class are set to the default value defined by the new class (or to null if there is no default defined).
        • Any user-defined properties that exist in both the original and the new class that are writable and have the same value (including null) as the default value defined in the original class will be set to the default value defined by the new class. However, any user-defined property that has had its value modified from the default value will retain that modified value in the new class.
        • Any user-defined properties whose definitions exist in the original class but not in the new class will no longer exist on the object when its class is changed.
        • Property constraints for the new class (for example, required values, choice lists, ranges) are not enforced.

        When the class of a document object is changed, the default document lifecycle policy of the new class will only be applied to the document object's DocumentLifecyclePolicy property if both of the following scenarios occur:

        • The document has no current lifecycle policy.
        • The document is either a reservation object, or is the current version object and is not reserved.

        Changing the document class of a document object has no effect on the storage location of the document's content. For more information, see the Document Storage topic in the "Document Concepts" section of the Content Engine Java and .NET API Developer's Guide.

        Parameters:
        className - A String specifying the symbolic name, ClassNames constant, ID, or GUIDConstants constant of the class to which this object is to be changed.
        Throws:
        E_NULL_OR_INVALID_PARAM_VALUE - if className is null or has a length of zero.
      • recover

        void recover()
        Initiates recovery of the objects represented by this recovery item. It restores the original object that was marked for deletion and any cascade-deleted objects referenced by OVPs of the original object.

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