Class: WorkspaceManager

WorkspaceManager

new epiviz.workspaces.WorkspaceManager(config, locationManager, measurementsManager, chartManager, chartFactory)

workspaces/workspace-manager.js, line 19
Name Type Description
config epiviz.Config
locationManager epiviz.ui.LocationManager
measurementsManager epiviz.measurements.MeasurementsManager
chartManager epiviz.ui.charts.ChartManager
chartFactory epiviz.ui.charts.ChartFactory

Methods

activeWorkspace(){epiviz.workspaces.Workspace}

workspaces/workspace-manager.js, line 148
Returns:
Type Description
epiviz.workspaces.Workspace

activeWorkspaceChanging(){boolean}

workspaces/workspace-manager.js, line 322
Returns:
Type Description
boolean

changeActiveWorkspace(id, workspace)

workspaces/workspace-manager.js, line 339
Name Type Description
id string nullable

The id of the new active workspace

workspace epiviz.workspaces.Workspace optional

A workspace that doesn't belong to the current user, to replace the active workspace

deleteActiveWorkspace()

workspaces/workspace-manager.js, line 246

endChangingActiveWorkspace()

workspaces/workspace-manager.js, line 317

get(id){epiviz.workspaces.Workspace}

workspaces/workspace-manager.js, line 156
Name Type Description
id string
Returns:
Type Description
epiviz.workspaces.Workspace

getByName(name)

workspaces/workspace-manager.js, line 163
Name Type Description
name string

initialize()

workspaces/workspace-manager.js, line 169

onActiveWorkspaceChanged(){epiviz.events.Event.<{oldValue: epiviz.workspaces.Workspace, newValue: epiviz.workspaces.Workspace, workspaceId: string}>}

workspaces/workspace-manager.js, line 309
Returns:
Type Description
epiviz.events.Event.<{oldValue: epiviz.workspaces.Workspace, newValue: epiviz.workspaces.Workspace, workspaceId: string}>

onActiveWorkspaceContentChanged(){epiviz.events.Event.<epiviz.workspaces.Workspace>}

workspaces/workspace-manager.js, line 332
Returns:
Type Description
epiviz.events.Event.<epiviz.workspaces.Workspace>

onRequestWorkspaces(){epiviz.events.Event.<{activeWorkspaceId: ?string}>}

workspaces/workspace-manager.js, line 327
Returns:
Type Description
epiviz.events.Event.<{activeWorkspaceId: ?string}>

onUiChartSettingsChanged(){epiviz.events.Event}

workspaces/workspace-manager.js, line 143
Returns:
Type Description
epiviz.events.Event

onWorkspacesLoaded(){epiviz.events.Event.<Array.<epiviz.workspaces.Workspace>>}

workspaces/workspace-manager.js, line 304
Returns:
Type Description
epiviz.events.Event.<Array.<epiviz.workspaces.Workspace>>

revertActiveWorkspace()

workspaces/workspace-manager.js, line 282

startChangingActiveWorkspace()

workspaces/workspace-manager.js, line 313

updateWorkspace(workspace)

workspaces/workspace-manager.js, line 239
Name Type Description
workspace epiviz.workspaces.Workspace

updateWorkspaces(workspaces, activeWorkspace, activeWorkspaceId, unchangedActiveWorkspace)

workspaces/workspace-manager.js, line 182
Name Type Description
workspaces Array.<epiviz.workspaces.Workspace>
activeWorkspace epiviz.workspaces.Workspace optional nullable
activeWorkspaceId string optional nullable
unchangedActiveWorkspace epiviz.workspaces.Workspace optional nullable
comments powered by Disqus