Class PersonaBarRepository
Inheritance
System.Object
PersonaBarRepository
Implements
Inherited Members
Namespace: Dnn.PersonaBar.Library.Repository
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class PersonaBarRepository : ServiceLocator<IPersonaBarRepository, PersonaBarRepository>, IPersonaBarRepository
Methods
| Improve this Doc View SourceDeleteMenuItem(String)
remove a menu item.
Declaration
public void DeleteMenuItem(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<IPersonaBarRepository> GetFactory()
Returns
Type | Description |
---|---|
Func<IPersonaBarRepository> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<Dnn.PersonaBar.Library.Repository.IPersonaBarRepository, Dnn.PersonaBar.Library.Repository.PersonaBarRepository>.GetFactory()
|
Improve this Doc
View Source
GetMenu()
Gets the menu structure of the persona bar.
Declaration
public PersonaBarMenu GetMenu()
Returns
Type | Description |
---|---|
PersonaBarMenu | Persona bar menu structure. |
GetMenuDefaultPermissions(Int32)
Get a menu item's default allowed permissions.
Declaration
public 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
public 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
public 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
public void SaveMenuDefaultPermissions(MenuItem menuItem, string roleNames)
Parameters
Type | Name | Description |
---|---|---|
MenuItem | menuItem | |
System.String | roleNames |
SaveMenuItem(MenuItem)
Save menu item info.
Declaration
public void SaveMenuItem(MenuItem item)
Parameters
Type | Name | Description |
---|---|---|
MenuItem | item |
UpdateMenuController(String, String)
Declaration
public void UpdateMenuController(string identifier, string controller)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | |
System.String | controller |