| biz.hammurapi.web.menu.Menu
Menu | public class Menu extends XmenuImpl implements DataAccessObject,RequestMatcher,ChainedContext(Code) | | |
Method Summary | |
public boolean | enabled() | public static String | escapeHtml(String txt) | public void | evalGuard(HttpServletRequest request) | public Menu | findByGuid(String id) | public Menu | findById(int id) | public Menu | findByXid(String xid) | public Help | findHelp(String id, Context context) | public Menu | findItem(String path) Finds menu item by path, XID or GUID. | public Menu | findItemById(String id) | Help | findTerm(String term, Set idSet, Context context) Invoked by Help to navigate menu tree. | public Object | get(String key) | public Object | get(String key, Context chain) | public Object | get(String key, String[] parameters, Context chain) Get with parameters for MenuNavigator to expand ${...|...|...|...} templates.
Parameters: key - Context key Parameters: parameters - Parameters , addressed by number, e.g. | public Menu | getAction(String name) | public Object | getAttribute(Object key) Walks up the hierarchy until finds the needed attribute. | public Cache | getCache() | public Menu | getChild(String name) | public Collection | getChildren() | public Object | getEngine() | public GenerationPolicy | getGenerationPolicy() | public Help | getHelp(Context context) | public MenuHelpTopics | getHelpTopic(String name, Context context) | protected InjectingClassLoader | getInjectingClassLoader() | public int | getInteractionOffset() Id's for menu items for interactions shall be formed as interaction id + interaction offset + ref offset. | protected InterfacePool | getInterfacePool() | public int | getLastMatch() | public String | getMatchParameter(String name) Parameters: name - First value of given parameter at the time when item was matched. | public String[] | getMatchParameters(String name) Parameters: name - Values of given parameter at the time when item was matched. | public Menu | getParentMenu() | public Menu[] | getPath() | public Menu | getRoot() | public Object | getRuntimeEngine() | public Object | getRuntimeEngine(HttpServletRequest request, HttpServletResponse response) | public Collection | getTemplateNames() | public boolean | hasHelp() | public Object | instantiateTemplate(String templateName, Map context) Instantiates template with given context. | public static boolean | isBlank(String str) | public boolean | isMatchQueryString() | public List | match(HttpServletRequest request) | public int | nextVirtualId() | protected void | setLastMatch(int match) Sets match number in self and parents. | public void | setSQLProcessor(SQLProcessor processor) Loads dependent objects. | public boolean | start(AuthorizationProvider authorizationProvider, Context context) Starts root menu. | public void | stop() | public void | toDom(Element holder, HttpServletRequest request) |
MT_FORM_HANDLER | final public static String MT_FORM_HANDLER(Code) | | |
Menu | public Menu(boolean force)(Code) | | |
Menu | public Menu(Element holder, boolean force) throws ConfigurationException(Code) | | |
Menu | public Menu(Element holder, Properties nameMap, CachedXPathAPI cxpa, boolean force) throws ConfigurationException(Code) | | |
enabled | public boolean enabled()(Code) | | true if there is no guard or if the guard evaluated to not false for the given thread. |
findItem | public Menu findItem(String path)(Code) | | Finds menu item by path, XID or GUID.
Parameters: path - |
findTerm | Help findTerm(String term, Set idSet, Context context)(Code) | | Invoked by Help to navigate menu tree.
Parameters: term - Parameters: idSet - |
get | public Object get(String key, String[] parameters, Context chain)(Code) | | Get with parameters for MenuNavigator to expand ${...|...|...|...} templates.
Parameters: key - Context key Parameters: parameters - Parameters , addressed by number, e.g. parameter 0 is addressed as ${0} Parameters: chain - Chain context key value |
getAttribute | public Object getAttribute(Object key)(Code) | | Walks up the hierarchy until finds the needed attribute.
|
getCache | public Cache getCache()(Code) | | |
getChildren | public Collection getChildren()(Code) | | true if this item has sub-items |
getGenerationPolicy | public GenerationPolicy getGenerationPolicy()(Code) | | |
getHelp | public Help getHelp(Context context)(Code) | | Root help descriptor for this item. |
getHelpTopic | public MenuHelpTopics getHelpTopic(String name, Context context)(Code) | | |
getInjectingClassLoader | protected InjectingClassLoader getInjectingClassLoader()(Code) | | |
getInteractionOffset | public int getInteractionOffset()(Code) | | Id's for menu items for interactions shall be formed as interaction id + interaction offset + ref offset.
Interaction offset |
getInterfacePool | protected InterfacePool getInterfacePool()(Code) | | |
getLastMatch | public int getLastMatch()(Code) | | max of last match of this item and parent item(s) |
getMatchParameter | public String getMatchParameter(String name)(Code) | | Parameters: name - First value of given parameter at the time when item was matched. Parent matchedparameters are inherited. |
getMatchParameters | public String[] getMatchParameters(String name)(Code) | | Parameters: name - Values of given parameter at the time when item was matched. Parent matchedparameters are inherited. |
getPath | public Menu[] getPath()(Code) | | path to this item. |
getRuntimeEngine | public Object getRuntimeEngine()(Code) | | Generated engine instance, which combinesmethods from engine class and functions. |
hasHelp | public boolean hasHelp()(Code) | | true if there are help topics associated with the menu item. |
instantiateTemplate | public Object instantiateTemplate(String templateName, Map context)(Code) | | Instantiates template with given context.
The context must contain "menuContext" entry.
Parameters: templateName - Parameters: context - |
isMatchQueryString | public boolean isMatchQueryString()(Code) | | |
nextVirtualId | public int nextVirtualId()(Code) | | Next virtual id number for menu. |
setLastMatch | protected void setLastMatch(int match)(Code) | | Sets match number in self and parents.
Parameters: match - |
setSQLProcessor | public void setSQLProcessor(SQLProcessor processor) throws SQLException(Code) | | Loads dependent objects.
|
start | public boolean start(AuthorizationProvider authorizationProvider, Context context) throws HammurapiWebException(Code) | | Starts root menu.
|
stop | public void stop() throws ConfigurationException(Code) | | |
|
|