private void view( HttpServletRequest request, ModelAndView next, WikiPageInfo pageInfo, Properties props) throws Exception { pageInfo.setContentJsp(JSP_ADMIN); pageInfo.setAdmin(true); pageInfo.setPageTitle(new WikiMessage("admin.title")); Collection virtualWikiList = WikiBase.getDataHandler().getVirtualWikiList(null); next.addObject("wikis", virtualWikiList); Collection userHandlers = WikiConfiguration.getInstance().getUserHandlers(); next.addObject("userHandlers", userHandlers); Collection dataHandlers = WikiConfiguration.getInstance().getDataHandlers(); next.addObject("dataHandlers", dataHandlers); Collection parsers = WikiConfiguration.getInstance().getParsers(); next.addObject("parsers", parsers); if (props == null) { props = Environment.getInstance(); } next.addObject("props", props); }
private void view(HttpServletRequest request, ModelAndView next, WikiPageInfo pageInfo) throws Exception { pageInfo.setContentJsp(JSP_SETUP); pageInfo.setSpecial(true); pageInfo.setPageTitle(new WikiMessage("setup.title", WikiVersion.CURRENT_WIKI_VERSION)); List<WikiConfigurationObject> dataHandlers = WikiConfiguration.getInstance().getDataHandlers(); next.addObject("dataHandlers", dataHandlers); WikiMessage logMessage = new WikiMessage( "setup.help.logfile", WikiLogger.getDefaultLogFile(), WikiLogger.getLogConfigFile()); next.addObject("logMessage", logMessage); }