Click or drag to resize
ObjectVersionManager Class
Class providing object versions management.
Inheritance Hierarchy
SystemObject
  CMS.DataEngineAbstractProvider
    CMS.DataEngineAbstractProviderObjectVersionManager
      CMS.SynchronizationObjectVersionManager

Namespace: CMS.Synchronization
Assembly: CMS.Synchronization (in CMS.Synchronization.dll) Version: 10.0.0
Syntax
C#
public class ObjectVersionManager : AbstractProvider<ObjectVersionManager>

The ObjectVersionManager type exposes the following members.

Constructors
  NameDescription
Public methodObjectVersionManager
Top
Fields
  NameDescription
Public fieldStatic memberRESTORE_ALL
Object versioning restore mode determining that all objects supported in staging will be deleted to recycle bin.
Public fieldStatic memberRESTORE_NONE
Object versioning restore mode determining that objects will be deleted permanently.
Public fieldStatic memberRESTORE_VERSIONEDOBJECTS
Object versioning restore mode determining that versioned objects will be deleted to recycle bin.
Top
Properties
  NameDescription
Public propertyIsValid
Indicates if the provider instance is up-to-date and can be used to manage object instances.
(Inherited from AbstractProvider.)
Protected propertyProviderName
Provider name
(Inherited from AbstractProvider.)
Top
Methods
  NameDescription
Public methodStatic memberAllowObjectRestore
Indicates if the object under specified site can be restored from recycle bin.
Public methodStatic memberAllowObjectVersioning
Indicates if the object versioning is allowed for specified object under particular site.
Protected methodClearHashtables(Boolean)
Clears the object's hashtables.
(Inherited from AbstractProvider.)
Public methodStatic memberCreateVersion
Creates object version.
Public methodCreateWebFarmTask(String, String)
Creates web farm task specific for current object and action name
(Inherited from AbstractProvider.)
Public methodCreateWebFarmTask(String, String, Byte, String)
Creates web farm task specific for current object and action name
(Inherited from AbstractProvider.)
Public methodStatic memberDeleteOlderVersions
Deletes older object versions.
Protected methodDeleteOlderVersionsInternal
Deletes older object versions.
Public methodStatic memberDestroyObjectHistory
Destroys complete object history.
Public methodStatic memberDestroyObjectVersion
Destroys object version.
Public methodStatic memberDisplayVersionsTab
Indicates if versions tab should be displayed for specified object type
Public methodStatic memberEnsureDeletedVersion
Ensures object version.
Public methodStatic memberEnsureVersion
Creates object version for deleted object.
Protected methodGetCurrentProvider
Gets the current provider instance
(Inherited from AbstractProviderTProvider.)
Public methodStatic memberGetLatestVersion
Gets latest version history for given object.
Protected methodGetLatestVersionInternal
Gets latest version history for given object.
Public methodStatic memberGetMajorVersionHistoryLength
Gets object major version history length.
Public methodStatic memberGetMinorVersionHistoryLength
Gets object version history length.
Public methodStatic memberGetNewVersionNumber
Gets new version number according to previous version number.
Protected methodGetNewVersionNumberInternal
Gets new version number according to previous version number.
Public methodStatic memberGetObjectHistory
Gets object version histories.
Protected methodGetObjectHistoryInternal
Gets object version histories.
Public methodStatic memberGetObjectVersionedExtensions
Returns allowed extensions list from settings.
Public methodStatic memberGetPromoteToMajorInterval
Gets time interval between 2 modifications of object for which last version will be promoted to major version
Public methodStatic memberGetUseLastVersionInterval
Gets time interval for which last version will be used to store version data
Protected methodChangePreviousVersionsObjectIDInternal
Changes object ID for the previous object versions during object restore.
Public methodCheckIn
Checks in the object.
Public methodCheckOut
Checks out the object to particular user
Protected methodInvalidate
Sets this provider as invalid
(Inherited from AbstractProvider.)
Public methodStatic memberIsObjectExtensionVersioned
Determines whether the file with the specified extension (case insensitive) is versioned on site specified by name.
Public methodStatic memberIsVersionMajor
Indicates if specified version is major version
Public methodStatic memberMakeVersionMajor
Make major version from specified version
Public methodStatic memberObjectHasVersions
Indicates if object has at least one version.
Public methodProcessWebFarmTask
Runs the processing of specific web farm task for current provider
(Inherited from AbstractProvider.)
Protected methodRegister
Registers current provider in providers collection
(Inherited from AbstractProvider.)
Public methodStatic memberRestoreObject(Int32, Boolean)
Restores object, optionally with its children.
Public methodStatic memberRestoreObject(Int32, Int32)
Restores object to specified site ID.
Public methodStatic memberRollbackVersion
Rollbacks object to specified version.
Public methodSetAsDefaultProvider
Sets this object as the default provider
(Inherited from AbstractProviderTProvider.)
Public methodUndoCheckOut
Cancels the object checkout.
Top
See Also