Interface IDashboardService
Dashboard service for managing user dashboards and widgets.
Namespace: DataWeb.Dashboard
Assembly: DataWeb.Core.dll
Syntax
public interface IDashboardService
Methods
GetAllWidgetsAsync()
Retrieves all available widgets asynchronously.
Declaration
Task<IEnumerable<WidgetBase>> GetAllWidgetsAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<WidgetBase>> | Returns a System.Threading.Tasks.Task<TResult> representing the collection of all available widgets. |
GetUserPanelAsync(IUser)
Get user panel asynchronously.
Declaration
Task<Panel> GetUserPanelAsync(IUser user)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | The IUser object representing the user. |
Returns
Type | Description |
---|---|
Task<Panel> | Returns a System.Threading.Tasks.Task<TResult> representing the user panel. |
GetUserWidgetsAsync(IUser)
Retrieves widgets accessible to the specified user asynchronously.
Declaration
Task<IEnumerable<WidgetBase>> GetUserWidgetsAsync(IUser user)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | The IUser object representing the user. |
Returns
Type | Description |
---|---|
Task<IEnumerable<WidgetBase>> | Returns a System.Threading.Tasks.Task<TResult> representing the collection of widgets accessible to the user. |
InitUserPanelAsync(IUser)
Initializes a new user panel with default widgets asynchronously.
Declaration
Task<Panel> InitUserPanelAsync(IUser user)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | The IUser object representing the user. |
Returns
Type | Description |
---|---|
Task<Panel> | Returns a System.Threading.Tasks.Task<TResult> representing the initialized user panel. |
SavePanelAsync(Panel)
Saves a user panel asynchronously.
Declaration
Task SavePanelAsync(Panel panel)
Parameters
Type | Name | Description |
---|---|---|
Panel | panel | The Panel object representing the user panel to be saved. |
Returns
Type | Description |
---|---|
Task | A System.Threading.Tasks.Task representing the asynchronous save operation. |