Interface IPersonaBarRepository
Interface responsible to get the Persona Bar menu structure from the data layer.
Namespace: Dnn.PersonaBar.Library.Repository
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public interface IPersonaBarRepository
Methods
| Improve this Doc View SourceDeleteMenuItem(String)
remove a menu item.
Declaration
void DeleteMenuItem(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier |
GetMenu()
Gets the menu structure of the persona bar.
Declaration
PersonaBarMenu GetMenu()
Returns
Type | Description |
---|---|
PersonaBarMenu | Persona bar menu structure. |
GetMenuDefaultPermissions(Int32)
Get a menu item's default allowed permissions.
Declaration
string GetMenuDefaultPermissions(int menuId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | menuId |
Returns
Type | Description |
---|---|
System.String | The permissions string. |
GetMenuItem(Int32)
Get the menu item by menu id.
Declaration
MenuItem GetMenuItem(int menuId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | menuId |
Returns
Type | Description |
---|---|
MenuItem | A MenuItem instance or null. |
GetMenuItem(String)
Get the menu item by identifier.
Declaration
MenuItem GetMenuItem(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier |
Returns
Type | Description |
---|---|
MenuItem | A MenuItem instance or null. |
SaveMenuDefaultPermissions(MenuItem, String)
Save a menu item's default allowed permissions.
Declaration
void SaveMenuDefaultPermissions(MenuItem menuItem, string roleNames)
Parameters
Type | Name | Description |
---|---|---|
MenuItem | menuItem | |
System.String | roleNames |
SaveMenuItem(MenuItem)
Save menu item info.
Declaration
void SaveMenuItem(MenuItem item)
Parameters
Type | Name | Description |
---|---|---|
MenuItem | item |
UpdateMenuController(String, String)
Interface responsible to get the Persona Bar menu structure from the data layer.
Declaration
void UpdateMenuController(string identifier, string controller)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | |
System.String | controller |