Package fr.soleil.salsa.entity.impl

Examples of fr.soleil.salsa.entity.impl.ContextImpl


            configTreeController.getView().pasteNodes();
        }
    }

    private IContext generateContext() {
        ContextImpl context = new ContextImpl();
        if (getDevicePreferences() != null) {
            context.setScanServerName(devicePreferences.getScanServer());
            context.setUserLogFile(devicePreferences.getUserLogFile());
            context.setMaxLineNumber(devicePreferences.getMaxLineNumber());
        }
        return context;
    }
View Full Code Here


            configTreeController.getView().pasteNodes();
        }
    }

    private IContext generateContext() {
        ContextImpl context = new ContextImpl();
        if (getDevicePreferences() != null) {
            context.setScanServerName(devicePreferences.getScanServer());
            context.setUserLogFile(devicePreferences.getUserLogFile());
            context.setMaxLineNumber(devicePreferences.getMaxLineNumber());
        }
        return context;
    }
View Full Code Here

     *         <code>null</code>
     */
    public static IContext extractContext(DevicePreferences preferences) {
        IContext result = null;
        if (preferences != null) {
            result = new ContextImpl();
            result.setScanServerName(preferences.getScanServer());
            result.setUserLogFile(preferences.getUserLogFile());
            result.setMaxLineNumber(preferences.getMaxLineNumber());
        }
        return result;
View Full Code Here

            configTreeController.getView().pasteNodes();
        }
    }

    private IContext generateContext() {
        ContextImpl context = new ContextImpl();
        if (getDevicePreferences() != null) {
            context.setScanServerName(devicePreferences.getScanServer());
            context.setUserLogFile(devicePreferences.getUserLogFile());
            context.setMaxLineNumber(devicePreferences.getMaxLineNumber());
        }
        return context;
    }
View Full Code Here

    public void notifyEndOfScanDetected() {

        String userLogFileName = ModelPreferences.getInstance().getUserLogFile();
        if (userLogFileName != null && !userLogFileName.trim().isEmpty()) {
            IConfig lastStartScanImpl = (IConfig) AutoCopier.toImpl(lastStartScan);
            ContextImpl context = new ContextImpl();
            context.setScanServerName(ModelPreferences.getInstance().getScanServer());
            context.setUserLogFile(userLogFileName);
            context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());

            try {
                ScanApi.endLogScan(lastStartScanImpl, context);
            }
            catch (IOException ioe) {
View Full Code Here

                try {

                    IConfig configImpl = (IConfig) AutoCopier.toImpl(config);
                    IConfig lastStartScanImpl = (IConfig) AutoCopier.toImpl(lastStartScan);
                    ContextImpl context = new ContextImpl();
                    context.setScanServerName(ModelPreferences.getInstance().getScanServer());
                    context.setUserLogFile(ModelPreferences.getInstance().getUserLogFile());
                    context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());

                    try {
                        ScanApi.pauseScan(configImpl, lastStartScanImpl, context);
                        Salsa.getApplicationController().getHistoricLogController().refresh();
                    }
View Full Code Here

                try {
                    IConfig configImpl = (IConfig) AutoCopier.toImpl(config);
                    IConfig lastStartScanImpl = (IConfig) AutoCopier.toImpl(lastStartScan);

                    ContextImpl context = new ContextImpl();
                    context.setScanServerName(ModelPreferences.getInstance().getScanServer());
                    context.setUserLogFile(ModelPreferences.getInstance().getUserLogFile());
                    context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());

                    try {
                        ScanApi.resumeScan(configImpl, lastStartScanImpl, context);
                        Salsa.getApplicationController().getHistoricLogController().refresh();
                    }
View Full Code Here

            default:
                throw new RuntimeException("Error : scan type not supported yet.");
            }
            */
            try {
                ContextImpl context = new ContextImpl();
                context.setScanServerName(ModelPreferences.getInstance().getScanServer());
                context.setUserLogFile(ModelPreferences.getInstance().getUserLogFile());
                context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());
                ScanApi.loadScan(configImpl, context);
            }
            catch (SalsaDeviceException e) {
                if (e.isConsoleDisplay()) {
                    e.printStackTrace();
View Full Code Here

            default:
                throw new RuntimeException("Error : scan type not supported yet.");
            }
            */
            try {
                ContextImpl context = new ContextImpl();
                context.setScanServerName(ModelPreferences.getInstance().getScanServer());
                context.setUserLogFile(ModelPreferences.getInstance().getUserLogFile());
                context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());

                try {
                    ScanApi.startScan(configImpl, context);
                    this.getHistoricLogController().refresh();
                }
View Full Code Here

                try {
                    IConfig configImpl = (IConfig) AutoCopier.toImpl(config);
                    IConfig lastStartScanImpl = (IConfig) AutoCopier.toImpl(lastStartScan);

                    ContextImpl context = new ContextImpl();
                    context.setScanServerName(ModelPreferences.getInstance().getScanServer());
                    context.setUserLogFile(ModelPreferences.getInstance().getUserLogFile());
                    context.setMaxLineNumber(ModelPreferences.getInstance().getMaxLineNumber());

                    try {
                        ScanApi.stopScan(configImpl, lastStartScanImpl, context);
                    }
                    catch (IOException ioe) {
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.impl.ContextImpl

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.