Package org.glassfish.admingui.plugin

Examples of org.glassfish.admingui.plugin.ConsolePluginService


        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

      @HandlerInput(name="name", type=String.class, required=true)},
  output={
      @HandlerOutput(name="resources", type=Map.class)})
    public static void getPluginResources(HandlerContext handlerCtx) {
  String name = (String) handlerCtx.getInputValue("name");
  ConsolePluginService cps = getPluginService(
      handlerCtx.getFacesContext());
  handlerCtx.setOutputValue("resources", cps.getResources(name));
    }
View Full Code Here

    public static void getPluginIdFromViewId(HandlerContext handlerCtx) {
        String viewId = (String) handlerCtx.getInputValue("viewId");
        if (viewId == null) {
            return;
        }
        ConsolePluginService cps = getPluginService(handlerCtx.getFacesContext());
        String pluginId = "common";
        int next = viewId.indexOf("/", 1);
        if (next > -1) {
            pluginId = viewId.substring(0, next);
            String resource = viewId.substring(next);

            if (pluginId.startsWith("/")) {
                pluginId = pluginId.substring(1);
            }

            ClassLoader cl = cps.getModuleClassLoader(pluginId);
            URL url = null;
            if (cl != null) {
                url = cl.getResource(resource);
            }
            if (url == null) {
View Full Code Here

        }
    )
    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

      @HandlerInput(name="name", type=String.class, required=true)},
  output={
      @HandlerOutput(name="resources", type=Map.class)})
    public static void getPluginResources(HandlerContext handlerCtx) {
  String name = (String) handlerCtx.getInputValue("name");
  ConsolePluginService cps = getPluginService(
      handlerCtx.getFacesContext());
  handlerCtx.setOutputValue("resources", cps.getResources(name));
    }
View Full Code Here

    public static void getPluginIdFromViewId(HandlerContext handlerCtx) {
        String viewId = (String) handlerCtx.getInputValue("viewId");
        if (viewId == null) {
            return;
        }
        ConsolePluginService cps = getPluginService(handlerCtx.getFacesContext());
        String pluginId = "common";
        int next = viewId.indexOf("/", 1);
        if (next > -1) {
            pluginId = viewId.substring(0, next);
            String resource = viewId.substring(next);

            if (pluginId.startsWith("/")) {
                pluginId = pluginId.substring(1);
            }

            ClassLoader cl = cps.getModuleClassLoader(pluginId);
            URL url = null;
            if (cl != null) {
                url = cl.getResource(resource);
            }
            if (url == null) {
View Full Code Here

        }
    )
    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

      @HandlerInput(name="name", type=String.class, required=true)},
  output={
      @HandlerOutput(name="resources", type=Map.class)})
    public static void getPluginResources(HandlerContext handlerCtx) {
  String name = (String) handlerCtx.getInputValue("name");
  ConsolePluginService cps = getPluginService(
      handlerCtx.getFacesContext());
  handlerCtx.setOutputValue("resources", cps.getResources(name));
    }
View Full Code Here

    public static void getPluginIdFromViewId(HandlerContext handlerCtx) {
        String viewId = (String) handlerCtx.getInputValue("viewId");
        if (viewId == null) {
            return;
        }
        ConsolePluginService cps = getPluginService(handlerCtx.getFacesContext());
        String pluginId = "common";
        int next = viewId.indexOf("/", 1);
        if (next > -1) {
            pluginId = viewId.substring(0, next);
            String resource = viewId.substring(next);

            if (pluginId.startsWith("/")) {
                pluginId = pluginId.substring(1);
            }

            ClassLoader cl = cps.getModuleClassLoader(pluginId);
            URL url = null;
            if (cl != null) {
                url = cl.getResource(resource);
            }
            if (url == null) {
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.