Demotes the latest major version of this document to an unreleased minor version. This method changes the previous major version (if it exists) to the current released major version, but does not delete any document versions (including content) from the document's version series, therefore allowing you to continue to have access to all version changes. Note that you can demote frozen document versions and documents that are not versioning-enabled (documents whose
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)
IsVersioningEnabled
property is set to false
). To successfully demote a document, the following requirements must be met or an error will occur:
- The document must be the latest major version (
property is set toVersionStatus
).RELEASED - The document must be the current version (
property is set toIsCurrentVersion
).true - The user must have the appropriate access rights (
).MINOR_VERSION - The document must not be reserved (
property is set toIsReserved
).false
After a successful call to
, the Content Engine performs the following steps on the document version that is being demoted:
- Applies the versioning security template (if it exists and is enabled) for the
state.IN_PROCESS - Decrements the value of the
property by 1.MajorVersionNumber - Sets the value of the
property to the number of the latest minor version belonging to the last major version + 1.MinorVersionNumber - Sets the
property toVersionStatus
.IN_PROCESS
In addition, the Content Engine performs the following steps on the previous major document version:
- Sets the
property toVersionStatus
.RELEASED - Applies the versioning security template for the
state.RELEASED
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)