Package org.glassfish.admingui.plugin

Examples of org.glassfish.admingui.plugin.ConsolePluginService


        }
    )
    public static void calculateHelpUrl(HandlerContext handlerCtx) {
        String pluginId = (String) handlerCtx.getInputValue("pluginId");
        String helpKey = (String)handlerCtx.getInputValue("helpKey");
        ConsolePluginService cps = getPluginService(handlerCtx.getFacesContext());

        ClassLoader cl = cps.getModuleClassLoader(pluginId);

        // Try the viewRoot locale first
        String path = getHelpPathForResource(helpKey, handlerCtx.getFacesContext().getViewRoot().getLocale(), cl);
        if (path == null) {
            // Try the default locale
View Full Code Here


        output={
            @HandlerOutput(name="toc", type=TOC.class)})
    public static void getHelpTOC(HandlerContext handlerCtx) {
  // Get the desired Locale and the ConsolePluginService...
  Locale locale = (Locale) handlerCtx.getInputValue("locale");
  ConsolePluginService cps = PluginHandlers.getPluginService(
    handlerCtx.getFacesContext());

  // Determine the correct locale for the path...
  String localePath = getHelpLocalePath(locale, cps);

  handlerCtx.setOutputValue("toc", cps.getHelpTOC(localePath));
    }
View Full Code Here

        output={
            @HandlerOutput(name="index", type=Index.class)})
    public static void getHelpIndex(HandlerContext handlerCtx) {
  // Get the desired Locale and the ConsolePluginService...
  Locale locale = (Locale) handlerCtx.getInputValue("locale");
  ConsolePluginService cps = PluginHandlers.getPluginService(
    handlerCtx.getFacesContext());

  // Determine the correct locale for the path...
  String localePath = getHelpLocalePath(locale, cps);

  handlerCtx.setOutputValue("index", cps.getHelpIndex(localePath));
    }
View Full Code Here

TOP

Related Classes of org.glassfish.admingui.plugin.ConsolePluginService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.