Storage
With this namespace, you can quickly provide methods to manipulate the storage.
The namespace Storage provides to developers, methods to easily get and import workspaces.
//accessing to Storage methods
SW.Storage.{methodName}
getWorkspaces
Description
This method can be used to get workspaces from a given url.
Method(s)
1 declare function getWorkspaces(url: string): Promise<WorkspaceDefinitionDto[]>;
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
url | string | true | Url to get workspqces |
Basic Usage
SW.Storage.getWorkspaces('workspacesURLExample');
importWorkspaces
Description
This method can be used to import workspaces from a given urls array to a tenant.
Method(s)
1 declare function importWorkspaces(urls: string[]): Promise<any>;
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
url | string[] | true | Urls to get workspqces |
Basic Usage
SW.Storage.importWorkspaces(['workspacesURL1', 'workspacesURL2']);