| java.lang.Object org.jaffa.components.navigation.NavAccessor
NavAccessor | public class NavAccessor (Code) | | This class allows access to a navigation system, based on a users access.
When this object is constructed, it looks at the full navigation system, and
filters out any options the current user does not have access to.
author: JonnyR author: PaulE version: 1.0 |
m_desktopCounter | int m_desktopCounter(Code) | | |
m_desktopNavOptions | Map m_desktopNavOptions(Code) | | |
NavAccessor | NavAccessor()(Code) | | Creates a new instance of NavAccessor
|
clearSession | public void clearSession(HttpSession session)(Code) | | Clear the NavAccessor attribute for this session.
|
getDesktopNavOptions | public NavOption getDesktopNavOptions(String desktopId)(Code) | | Based on the DesktopId passed a list will be build of child nodes based on security and parent node ID.
Parameters: desktopId - Desktop Id that will one verified be used to return a list of NavOptions that are children that have this desktop Id List of NavOptions based on a DektopId is passed back , for use in building desktop navs |
getGlobalNavOptions | public List getGlobalNavOptions()(Code) | | Based on the UserId this method will return the list of variables available to the user.
This returns a List of every menu NavOption available to the user based on their UserId |
getNavAccessor | public static synchronized NavAccessor getNavAccessor(HttpSession session)(Code) | | This is a static method to allow a synchronized Access to the NavAccessor object
caching it on creation
|
getNextDesktopId | int getNextDesktopId()(Code) | | Holder a counter for assigning unique ids to options within this NavAccessor
|
parseMenuOptions | int parseMenuOptions(List menuOptions, List navOptions)(Code) | | the number of menu items added under this option |
printMenuOptions | public static void printMenuOptions(List l, String prefix)(Code) | | |
|
|