SetModelVersioningFlag
Purpose
SetModelVersioningFlag allows an application to dynamically enable or disable data versioning for a metamodel.
Description
If bVersioningAllowed is false, versioning will be disabled for the metamodel.
If bVersioningAllowed is true and the repository allows versioning, then versioning will be enabled for the metamodel, else versioning will be left disabled for the metamodel.
bDeleteVersions indicates if existing historical versions for objects in the AIM's classes should be deleted or retained.
The metamodel is specified with the same values as needed for ReadObject.
When versioning is enabled:
When versioning is disabled:
Requirements
The caller must have write permission for the metamodel and for all classes in the metamodel.
The object name or the object ID (internal or globally unique) must be set
Syntax
HRESULT SetModelVersioningFlag(
const bool bVersioningAllowed,
const bool bDeleteVersions = false);
Argument |
In/Out |
Description |
bVersioningAllowed |
in |
Value of versioning support for the metamodel. |
bDeleteVersions |
in |
Indicates if existing data objects in the metamodel's classes should have their non-published versions deleted. True = delete all non-published versions; false = retain all non-published versions. |