Class ControlBarController
Inheritance
Implements
Namespace: DotNetNuke.Web.Components.Controllers
Assembly: DotNetNuke.Web.dll
Syntax
public class ControlBarController : ServiceLocator<IControlBarController, ControlBarController>, IControlBarController
Constructors
| Improve this Doc View SourceControlBarController()
Declaration
public ControlBarController()
Methods
| Improve this Doc View SourceGetBookmarkCategory(Int32)
Get the category name where the bookmarked modules are shown.
Declaration
public string GetBookmarkCategory(int portalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id where modules are installed. |
Returns
| Type | Description |
|---|---|
| System.String | The name of the bookmark category. |
GetBookmarkedDesktopModules(Int32, Int32, String)
Get all desktop modules bookmark by user in Control Bar.
Declaration
public IEnumerable<KeyValuePair<string, PortalDesktopModuleInfo>> GetBookmarkedDesktopModules(int portalId, int userId, string searchTerm = "")
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id where modules are installed. |
| System.Int32 | userId | User Id who has bookmarked the modules. |
| System.String | searchTerm | Search term to filter modules. |
Returns
| Type | Description |
|---|---|
| IEnumerable<KeyValuePair<System.String, PortalDesktopModuleInfo>> | A list with all matched modules. |
GetCategoryDesktopModules(Int32, String, String)
Get all desktop modules that belong to a category.
Declaration
public IEnumerable<KeyValuePair<string, PortalDesktopModuleInfo>> GetCategoryDesktopModules(int portalId, string category, string searchTerm = "")
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id where modules are installed. |
| System.String | category | Catenory name. |
| System.String | searchTerm | Search term to filter modules. |
Returns
| Type | Description |
|---|---|
| IEnumerable<KeyValuePair<System.String, PortalDesktopModuleInfo>> | A list with all matched desktop modules. |
GetControlBarLogoURL()
Get the current Logo URL shown in Control Bar.
Declaration
public string GetControlBarLogoURL()
Returns
| Type | Description |
|---|---|
| System.String | The URL of the Control Bar Logo. |
GetCustomMenuItems()
Gets all custom Menu item available in the system.
Declaration
public IEnumerable<MenuItemViewModel> GetCustomMenuItems()
Returns
| Type | Description |
|---|---|
| IEnumerable<MenuItemViewModel> | All custom Menu Items. |
GetFactory()
Declaration
protected override Func<IControlBarController> GetFactory()
Returns
| Type | Description |
|---|---|
| Func<IControlBarController> |
GetUpgradeIndicator(Version, Boolean, Boolean)
Returns the upgrade indicator model.
Declaration
public UpgradeIndicatorViewModel GetUpgradeIndicator(Version version, bool isLocal, bool isSecureConnection)
Parameters
| Type | Name | Description |
|---|---|---|
| Version | version | |
| System.Boolean | isLocal | |
| System.Boolean | isSecureConnection |
Returns
| Type | Description |
|---|---|
| UpgradeIndicatorViewModel | An instance of the view model UpgradeIndicator. |
SaveBookMark(Int32, Int32, String, String)
Save a user bookmark.
Declaration
public void SaveBookMark(int portalId, int userId, string bookmarkTitle, string bookmarkValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id where save the bookmark. |
| System.Int32 | userId | User Id who is going to create the bookmark. |
| System.String | bookmarkTitle | |
| System.String | bookmarkValue | Value for the personalization setting. |