/** * EXPERIMENTAL: Get the topic map object the context tag is working * with. This method will give direct access to the same transaction * as the context tag is using. * * @since 3.4 */ public static TopicMapIF getTopicMap(ServletRequest request) { NavigatorPageIF ctxt = (NavigatorPageIF) request.getAttribute(NavigatorApplicationIF.CONTEXT_KEY); if (ctxt == null) throw new OntopiaRuntimeException("Could not find navigator context."); return ctxt.getTopicMap(); }
/** * EXPERIMENTAL: Get the topic map object the context tag is working * with. This method will give direct access to the same transaction * as the context tag is using. * * @since 3.2.1 */ public static TopicMapIF getTopicMap(PageContext pageContext) { NavigatorPageIF ctxt = (NavigatorPageIF) pageContext.getAttribute(NavigatorApplicationIF.CONTEXT_KEY, PageContext.REQUEST_SCOPE); if (ctxt == null) throw new OntopiaRuntimeException("Could not find navigator context."); return ctxt.getTopicMap(); }
TopicMapIF tm = contextTag.getTopicMap(); if (tm != null) topicmap_id = navApp.getTopicMapRefId(tm);
TopicMapIF topicmap = context.getTopicMap(); UserIF user = FrameworkUtils.getUser(context.getPageContext()); UserFilterContextStore filterContext = user.getFilterContext();