Package fr.soleil.salsa.entity.impl

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


                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);
                    getHistoricLogController().refresh();
                    getScanResultController().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);
                    getHistoricLogController().refresh();
                    getScanResultController().refresh();
View Full Code Here

                try {
                    IConfig<?> configImpl = AutoCopier.toImpl(config, IConfig.class);
                    IConfig<?> lastStartScanImpl = AutoCopier.toImpl(lastStartScan, IConfig.class);

                    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

                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

     * @return The expected {@link IContext}, or <code>null</code> if <code>preferences</code> was <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

     *         <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

     *         <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

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.