Show / Hide Table of Contents

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

GetMenu(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
bool

true if the menu item is visible, otherwise false.

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS