Class DashboardRepository
Acts as the link between the Dashboard and the data storage.
Inheritance
System.Object
DashboardRepository
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Dashboard
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IDashboardRepository))]
[Obsolete("The EPiServer 6 Dashboard has been replaced with EPiServer.ViewComposition namespace.")]
public class DashboardRepository : IDashboardRepository
Constructors
DashboardRepository(IGadgetFactory, DynamicDataStoreFactory)
Initializes a new instance of the DashboardRepository class.
Declaration
public DashboardRepository(IGadgetFactory gadgetFactory, DynamicDataStoreFactory storeFactory)
Parameters
Type | Name | Description |
---|---|---|
IGadgetFactory | gadgetFactory | A factory to create Gadget instances or fetch Gadget templates. |
DynamicDataStoreFactory | storeFactory | The store provider. |
Methods
Create(Dashboard)
Creates new dashboard in repository.
Declaration
public void Create(Dashboard dashboard)
Parameters
Type | Name | Description |
---|---|---|
Dashboard | dashboard | The dashboard to create. |
Delete(Dashboard)
Deletes the specified dashboard.
Declaration
public void Delete(Dashboard dashboard)
Parameters
Type | Name | Description |
---|---|---|
Dashboard | dashboard | The dashboard to delete. |
Save(Dashboard)
Saves the specified dashboard.
Declaration
public void Save(Dashboard dashboard)
Parameters
Type | Name | Description |
---|---|---|
Dashboard | dashboard | The dashboard to save. |
TryGet(Guid, out Dashboard)
Tries to get a Dashboard.
Declaration
public bool TryGet(Guid id, out Dashboard dashboard)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The id of the dashboard. |
Dashboard | dashboard | The dashboard. |
Returns
Type | Description |
---|---|
System.Boolean | true if successful. |
TryGet(String, out Dashboard)
Tries to get a Dashboard.
Declaration
public bool TryGet(string userName, out Dashboard dashboard)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The username. |
Dashboard | dashboard | The dashboard. |
Returns
Type | Description |
---|---|
System.Boolean | true if successful. |
Events
Creating
Creating event
Declaration
public event EventHandler<DashboardEventArgs> Creating
Event Type
Type | Description |
---|---|
System.EventHandler<DashboardEventArgs> |
Deleting
Deleting event
Declaration
public event EventHandler<DashboardEventArgs> Deleting
Event Type
Type | Description |
---|---|
System.EventHandler<DashboardEventArgs> |
Loaded
Loaded event
Declaration
public event EventHandler<DashboardEventArgs> Loaded
Event Type
Type | Description |
---|---|
System.EventHandler<DashboardEventArgs> |
Saving
Saving event
Declaration
public event EventHandler<DashboardEventArgs> Saving
Event Type
Type | Description |
---|---|
System.EventHandler<DashboardEventArgs> |