Interface IPersonaBarController
Interface responsible to manage the PersonaBar structure by User's Roles and Sku.
Namespace: Dnn.PersonaBar.Library.Controllers
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public interface IPersonaBarController
Methods
| Improve this Doc View SourceGetMenu(PortalSettings, UserInfo)
Gets the menu structure of the persona bar.
Declaration
PersonaBarMenu GetMenu(PortalSettings portalSettings, UserInfo userInfo)
Parameters
Type | Name | Description |
---|---|---|
PortalSettings | portalSettings | The portal settings. |
UserInfo | userInfo | the user that will be used to filter the menu. |
Returns
Type | Description |
---|---|
PersonaBarMenu | Persona bar menu structure for the user. |
IsVisible(PortalSettings, UserInfo, MenuItem)
Whether the menu item is visible.
Declaration
bool IsVisible(PortalSettings portalSettings, UserInfo user, MenuItem menuItem)
Parameters
Type | Name | Description |
---|---|---|
PortalSettings | portalSettings | Portal Settings. |
UserInfo | user | User Info. |
MenuItem | menuItem | The menu item. |
Returns
Type | Description |
---|---|
System.Boolean | true if the menu item is visible, otherwise false. |