@Component public class NavbarRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IAdditionalLinksDAO |
dLinks |
| Constructor and Description |
|---|
NavbarRegistry() |
| Modifier and Type | Method and Description |
|---|---|
TreeSet<NavbarElement> |
getMainMenu() |
Collection<NavbarElement> |
getSubMenu(NavbarHardLinks category) |
Set<NavbarHardLinks> |
getSubMenuCategories() |
void |
init()
Initialization for spring
|
void |
registerMainMenu(String identifier,
String relativePath) |
void |
registerMainMenu(String identifier,
String relativePath,
int orderNo) |
void |
registerSubMenu(NavbarHardLinks menu,
String identifier,
String relativePath) |
void |
registerSubMenu(NavbarHardLinks menu,
String identifier,
String relativePath,
int orderNo) |
void |
unregisterSubMenu(NavbarHardLinks menu,
String identifier) |
@Autowired protected IAdditionalLinksDAO dLinks
@PostConstruct public void init()
public void registerMainMenu(String identifier, String relativePath)
identifier - the identifierrelativePath - the relative path to link topublic void registerSubMenu(NavbarHardLinks menu, String identifier, String relativePath)
menu - an existing menu itemidentifier - the identifierrelativePath - the relative path to link topublic void unregisterSubMenu(NavbarHardLinks menu, String identifier)
menu - an existing menu itemidentifier - the identifierpublic void registerMainMenu(String identifier, String relativePath, int orderNo)
identifier - the identifierrelativePath - the relative path to link toorderNo - the position within the listpublic void registerSubMenu(NavbarHardLinks menu, String identifier, String relativePath, int orderNo)
menu - an existing menu itemidentifier - the identifierrelativePath - the relative path to link toorderNo - the position within the listpublic TreeSet<NavbarElement> getMainMenu()
public Set<NavbarHardLinks> getSubMenuCategories()
public Collection<NavbarElement> getSubMenu(NavbarHardLinks category)
category - the categoryCopyright © 2014 Cinovo AG. All Rights Reserved.