Class: Workspace#
Workspace
beta
Hierarchy#
- Workspace
Implements#
- WorkspaceModel
- WorkspaceState
Index#
Constructors#
Properties#
Accessors#
Methods#
Constructors#
constructor#
+ new Workspace(data: WorkspaceModel): Workspace
Defined in src/common/workspace-store.ts:74
Parameters:
| Name | Type |
|---|---|
data |
WorkspaceModel |
Returns: Workspace
Properties#
Optional description#
• description? : string
Implementation of WorkspaceModel.description
Defined in src/common/workspace-store.ts:52
Workspace description
observable
enabled#
• enabled: boolean
Defined in src/common/workspace-store.ts:68
Is workspace enabled
Workspaces that don't have ownerRef will be enabled by default. Workspaces with ownerRef need to explicitly enable a workspace.
observable
id#
• id: WorkspaceId
Implementation of WorkspaceModel.id
Defined in src/common/workspace-store.ts:40
Unique id for workspace
observable
Optional lastActiveClusterId#
• lastActiveClusterId? : ClusterId
Implementation of WorkspaceModel.lastActiveClusterId
Defined in src/common/workspace-store.ts:74
Last active cluster id
observable
name#
• name: string
Implementation of WorkspaceModel.name
Defined in src/common/workspace-store.ts:46
Workspace name
observable
Optional ownerRef#
• ownerRef? : string
Implementation of WorkspaceModel.ownerRef
Defined in src/common/workspace-store.ts:60
Workspace owner reference
If extension sets ownerRef then it needs to explicitly mark workspace as enabled onActivate (or when workspace is saved)
observable
Accessors#
isManaged#
• get isManaged(): boolean
Defined in src/common/workspace-store.ts:89
Is workspace managed by an extension
Returns: boolean
Methods#
getState#
▸ getState(): WorkspaceState
Defined in src/common/workspace-store.ts:97
Get workspace state
Returns: WorkspaceState
pushState#
▸ pushState(state: WorkspaceState): void
Defined in src/common/workspace-store.ts:109
Push state
interal
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
state |
WorkspaceState | this.getState() | workspace state |
Returns: void
setState#
▸ setState(state: WorkspaceState): void
Defined in src/common/workspace-store.ts:118
Parameters:
| Name | Type | Description |
|---|---|---|
state |
WorkspaceState | workspace state |
Returns: void
toJSON#
▸ toJSON(): WorkspaceModel
Defined in src/common/workspace-store.ts:122
Returns: WorkspaceModel