VersionModel

Represents a snapshot of a ProjectModel at a point in time. Each VersionModel has an associated set of changes that describe the user-initiated modifications to the project that happened since the previous version was captured.

Properties

62

Class hierarchy

isVersionModel: Boolean= truereadonly
Identifies an object as an instance of VersionModel class, or subclass thereof.
isVersionModel: Boolean= truereadonlystatic
Identifies an object as an instance of VersionModel class, or subclass thereof.
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTreeNodeTreeNode

Editing

copyOfModel
isValidModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

stmModelStm

Other

$namestaticModel
relationsstaticModel

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Functions

54

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Other

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Typedefs

1

Fields

4
content: Object

A serializable object snapshot of the ProjectModel at the point in time when the version was created.

Note that this field is not loaded from the backend by default, due to its size. The Versions feature manages loading the contents of this field on demand.

The format of this data should match that returned by toJSON.

isAutosave: Boolean

Whether this version was auto-saved.

name: String

The name of the version. When an auto-saved version's name is null, the version description will return a default text description instead.

savedAt: Date

The timestamp when the version was created.