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
CmRecoveryItemobject 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
CmRecoveryItemobjects that represent them. A set of recovery items can be retrieved from aCmRecoveryBinobject. By default, a recovery item inherits its permissions from theCmRecoveryBinobject that contains it.A user can invoke either a recovery method or a delete method on a
CmRecoveryItemobject. 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 fromIndependentlyPersistableObject, 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidchangeClass(java.lang.String className)Changes the class of a Content Engine object.ActiveMarkingListget_ActiveMarkings()Returns the value of the ActiveMarkings property.EventSetget_AuditedEvents()Returns the value of the AuditedEvents property.java.lang.Stringget_Creator()Returns the value of the Creator property.java.util.Dateget_DateCreated()Returns the value of the DateCreated property.java.util.Dateget_DateLastModified()Returns the value of the DateLastModified property.Idget_Id()Returns the value of the Id property.java.lang.Booleanget_InheritRecoveryBinPermissions()Returns the value of the InheritRecoveryBinPermissions property.java.lang.Stringget_LastModifier()Returns the value of the LastModifier property.Idget_OriginalClassId()Returns the value of the OriginalClassId property.java.lang.Stringget_OriginalCreator()Returns the value of the OriginalCreator property.java.util.Dateget_OriginalDateCreated()Returns the value of the OriginalDateCreated property.java.util.Dateget_OriginalDateLastModified()Returns the value of the OriginalDateLastModified property.Idget_OriginalId()Returns the value of the OriginalId property.java.lang.Stringget_OriginalLastModifier()Returns the value of the OriginalLastModifier property.java.lang.Stringget_OriginalName()Returns the value of the OriginalName property.Subscribableget_OriginalObject()Returns the value of the OriginalObject property.java.lang.Stringget_Owner()Returns the value of the Owner property.AccessPermissionListget_Permissions()Returns the value of the Permissions property.java.lang.Integerget_RecoverableObjectsCount()Returns the value of the RecoverableObjectsCount property.CmRecoveryBinget_RecoveryBin()Returns the value of the RecoveryBin property.voidrecover()Initiates recovery of the objects represented by this recovery item.voidset_Creator(java.lang.String value)Sets the value of the Creator property.voidset_DateCreated(java.util.Date value)Sets the value of the DateCreated property.voidset_DateLastModified(java.util.Date value)Sets the value of the DateLastModified property.voidset_InheritRecoveryBinPermissions(java.lang.Boolean value)Sets the value of the InheritRecoveryBinPermissions property.voidset_LastModifier(java.lang.String value)Sets the value of the LastModifier property.voidset_OriginalObject(Subscribable value)Sets the value of the OriginalObject property.voidset_Owner(java.lang.String value)Sets the value of the Owner property.voidset_Permissions(AccessPermissionList value)Sets the value of the Permissions property.voidset_RecoveryBin(CmRecoveryBin value)Sets the value of the RecoveryBin property.-
Methods inherited from interface com.filenet.api.core.RepositoryObject
getObjectStore
-
Methods inherited from interface com.filenet.api.core.Subscribable
raiseEvent
-
Methods inherited from interface com.filenet.api.core.IndependentlyPersistableObject
addPendingAction, clearPendingActions, delete, getAccessAllowed, getPendingActions, getUpdateSequenceNumber, isCurrent, save, save, setUpdateSequenceNumber
-
Methods inherited from interface com.filenet.api.core.IndependentObject
fetchProperties, fetchProperties, fetchProperty, fetchProperty, getObjectReference, refresh, refresh, refresh
-
Methods inherited from interface com.filenet.api.core.EngineObject
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
-
-
-
-
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_AuditedEvents
EventSet get_AuditedEvents()
Returns the value of the AuditedEvents property. For more information, see AuditedEvents 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_Permissions
AccessPermissionList get_Permissions()
Returns the value of the Permissions property. For more information, see Permissions Property.
-
set_Permissions
void set_Permissions(AccessPermissionList value)
Sets the value of the Permissions property. For more information, see Permissions Property.
-
get_ActiveMarkings
ActiveMarkingList get_ActiveMarkings()
Returns the value of the ActiveMarkings property. For more information, see ActiveMarkings Property.
-
get_RecoveryBin
CmRecoveryBin get_RecoveryBin()
Returns the value of the RecoveryBin property. For more information, see RecoveryBin Property.
-
set_RecoveryBin
void set_RecoveryBin(CmRecoveryBin value)
Sets the value of the RecoveryBin property. For more information, see RecoveryBin 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_OriginalObject
Subscribable get_OriginalObject()
Returns the value of the OriginalObject property. For more information, see OriginalObject Property.
-
set_OriginalObject
void set_OriginalObject(Subscribable value)
Sets the value of the OriginalObject property. For more information, see OriginalObject 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. ThechangeClassmethod 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
nullif 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- AStringspecifying the symbolic name,ClassNamesconstant, ID, orGUIDConstantsconstant of the class to which this object is to be changed.- Throws:
E_NULL_OR_INVALID_PARAM_VALUE- ifclassNameisnullor has a length of zero.
- 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
-
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.
-
-