Functions for serializing a webgme project or models. These will work both on the client and server.
To include in your module (e.g. Plugin) require via 'common/util/serialization'.
- Source:
Methods
(static) exportModelsToFile(project, blobClient, parameters, callbackopt) → {Promise}
Exports a selection of models and packages them in webgmexm file which is uploaded to the blob storage.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
project |
ProjectInterface | ||||||||||||||||||||||||||||||||||||||||||
blobClient |
BlobClient | ||||||||||||||||||||||||||||||||||||||||||
parameters |
object | One of rootHash, commitHash and branchName and tagName must be given. If more than one is given, the order of precedence is: branchName, commitHash, tagName and rootHash. Properties
|
|||||||||||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Properties
|
- Source:
Returns:
- Type
- Promise
(static) exportProjectToFile(project, blobClient, parameters, callbackopt) → {Promise}
Exports a snap-shot of the entire project-tree and uploads a webgmex-file on the blob storage.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
project |
ProjectInterface | ||||||||||||||||||||||||||||||||||||||||||
blobClient |
BlobClient | ||||||||||||||||||||||||||||||||||||||||||
parameters |
object | One of rootHash, commitHash and branchName and tagName must be given. If more than one is given, the order of precedence is: branchName, commitHash, tagName and rootHash. Properties
|
|||||||||||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Properties
|
- Source:
Returns:
- Type
- Promise