Examples of ExportManager


Examples of org.jboss.aesh.console.export.ExportManager

      ShellContextImpl shellContextImpl = new ShellContextImpl(this, currentResource, listeners);
      for (CommandExecutionListener listener : executionListeners)
      {
         shellContextImpl.addCommandExecutionListener(listener);
      }
      ExportManager exportManager = console.getExportManager();
      if (exportManager != null)
      {
         Map<Object, Object> attributeMap = shellContextImpl.getAttributeMap();
         for (String variableName : exportManager.getAllNames())
         {
            String variableValue = exportManager.getValue(variableName);
            attributeMap.put(variableName, variableValue);
         }
      }
      return shellContextImpl;
   }
View Full Code Here

Examples of org.jboss.aesh.console.export.ExportManager

        //enable export
        if(settings.isExportEnabled()) {
            if(settings.isLogging())
                logger.info("enabling exportManager with file: "+settings.getExportFile());
            exportManager = new ExportManager(settings.getExportFile());
            completionHandler.addCompletion(new ExportCompletion(exportManager));
        }

        //InterruptHandler for InputProcessor
        InputProcessorInterruptHook interruptHook = new InputProcessorInterruptHook() {
View Full Code Here

Examples of org.jboss.aesh.console.export.ExportManager

      ShellContextImpl shellContextImpl = new ShellContextImpl(this, currentResource, listeners);
      for (CommandExecutionListener listener : executionListeners)
      {
         shellContextImpl.addCommandExecutionListener(listener);
      }
      ExportManager exportManager = console.getExportManager();
      if (exportManager != null)
      {
         Map<Object, Object> attributeMap = shellContextImpl.getAttributeMap();
         for (String variableName : exportManager.getAllNames())
         {
            String variableValue = exportManager.getValue(variableName);
            attributeMap.put(variableName, variableValue);
         }
      }
      return shellContextImpl;
   }
View Full Code Here

Examples of org.jboss.aesh.console.export.ExportManager

        //enable export
        if(settings.isExportEnabled()) {
            if(settings.isLogging())
                logger.info("enabling exportManager with file: "+settings.getExportFile());
            exportManager = new ExportManager(settings.getExportFile());
            completionList.add(new ExportCompletion(exportManager));
        }

        operations = new ArrayList<>();
        currentOperation = null;
View Full Code Here

Examples of org.jboss.aesh.console.export.ExportManager

        //enable export
        if(settings.isExportEnabled()) {
            if(settings.isLogging())
                logger.info("enabling exportManager with file: "+settings.getExportFile());
            exportManager = new ExportManager(settings.getExportFile());
            completionHandler.addCompletion(new ExportCompletion(exportManager));
        }

        //InterruptHandler for InputProcessor
        InputProcessorInterruptHook interruptHook = new InputProcessorInterruptHook() {
View Full Code Here

Examples of org.jboss.aesh.console.export.ExportManager

        //enable export
        if(settings.isExportEnabled()) {
            if(settings.isLogging())
                logger.info("enabling exportManager with file: "+settings.getExportFile());
            exportManager = new ExportManager(settings.getExportFile());
            completionHandler.addCompletion(new ExportCompletion(exportManager));
        }

        //InterruptHandler for InputProcessor
        InputProcessorInterruptHook interruptHook = new InputProcessorInterruptHook() {
View Full Code Here

Examples of org.jboss.aesh.console.export.ExportManager

      ShellContextImpl shellContextImpl = new ShellContextImpl(this, currentResource, listeners);
      for (CommandExecutionListener listener : executionListeners)
      {
         shellContextImpl.addCommandExecutionListener(listener);
      }
      ExportManager exportManager = console.getExportManager();
      if (exportManager != null)
      {
         Map<Object, Object> attributeMap = shellContextImpl.getAttributeMap();
         for (String variableName : exportManager.getAllNames())
         {
            String variableValue = exportManager.getValue(variableName);
            attributeMap.put(variableName, variableValue);
         }
      }
      return shellContextImpl;
   }
View Full Code Here

Examples of org.jboss.dashboard.export.ExportManager

        selectedSectionIds.clear();
    }

    public CommandResponse actionExportSelectedKPIs(CommandRequest request) throws Exception {
        // Export in XML format all the KPIs and data providers in the system.
        ExportManager expMgr = DataDisplayerServices.lookup().getExportManager();
        ExportOptions options = expMgr.createExportOptions();
        options.setIgnoreKPIs(false);
        options.setIgnoreDataProviders(false);
        options.setKPIs(getSelectedKPIs());
        options.setDataProviders(getSelectedDataProviders());
        String xml = expMgr.format(options);

        // Send XML bytes as a stream response.
        int id = xml.hashCode();
        if (id < 0) id = id*-1;
        return new SendStreamResponse(new ByteArrayInputStream(xml.getBytes()), "inline;filename=kpiExport_" + id + ".xml");
View Full Code Here

Examples of org.jboss.dashboard.export.ExportManager

        selectedSectionIds.clear();
    }

    public CommandResponse actionExportSelectedKPIs(CommandRequest request) throws Exception {
        // Export in XML format all the KPIs and data providers in the system.
        ExportManager expMgr = DataDisplayerServices.lookup().getExportManager();
        ExportOptions options = expMgr.createExportOptions();
        options.setIgnoreKPIs(false);
        options.setIgnoreDataProviders(false);
        options.setKPIs(getSelectedKPIs());
        options.setDataProviders(getSelectedDataProviders());
        String xml = expMgr.format(options);

        // Send XML bytes as a stream response.
        int id = xml.hashCode();
        if (id < 0) id = id*-1;
        return new SendStreamResponse(new ByteArrayInputStream(xml.getBytes()), "inline;filename=kpiExport_" + id + ".xml");
View Full Code Here

Examples of org.jboss.dashboard.export.ExportManager

        selectedSectionIds.clear();
    }

    public CommandResponse actionExportSelectedKPIs(CommandRequest request) throws Exception {
        // Export in XML format all the KPIs and data providers in the system.
        ExportManager expMgr = DataDisplayerServices.lookup().getExportManager();
        ExportOptions options = expMgr.createExportOptions();
        options.setIgnoreKPIs(false);
        options.setIgnoreDataProviders(false);
        options.setKPIs(getSelectedKPIs());
        options.setDataProviders(getSelectedDataProviders());
        String xml = expMgr.format(options);

        // Send XML bytes as a stream response.
        int id = xml.hashCode();
        if (id < 0) id = id*-1;
        return new SendStreamResponse(new ByteArrayInputStream(xml.getBytes()), "inline;filename=kpiExport_" + id + ".kpiex");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.