verinec.importer.parser
Interface IServiceParser

All Known Implementing Classes:
ImportEthernet, ImportHostname, ImportIptables

public interface IServiceParser

A class to parse a service into Verinec configuration. This interface is used from ImporterDialog.

Author:
david.buchmann at unifr.ch

Method Summary
 JPanel getConfigPanel()
          Return a configuration panel.
 String getRawConfiguration()
          Get the raw configuration, that is the configuratio ninformation of the implementation of service.
 void notifyMode(ImporterDialog.SettingsPanelBase mode)
          Update the service parser about the current mode.
 void runImport(ImporterEnvironment environment)
          Start the import process if this service is activated.
 void updateNode(PCNode node)
          Update the configuration of this node with the imported information.
 

Method Detail

getConfigPanel

JPanel getConfigPanel()
Return a configuration panel. The service parser is responsible itselves to keep track of this instance.

Returns:
A panel to configure settings for this import.

runImport

void runImport(ImporterEnvironment environment)
               throws VerinecImporterException
Start the import process if this service is activated.

Parameters:
environment - The environment to put results and store warnings.
Throws:
VerinecImporterException

updateNode

void updateNode(PCNode node)
Update the configuration of this node with the imported information. This is done after all import steps have been successful.

Parameters:
node - The node to update

getRawConfiguration

String getRawConfiguration()
Get the raw configuration, that is the configuratio ninformation of the implementation of service.

Returns:
Configuration of this service or null if there is nothing to show.

notifyMode

void notifyMode(ImporterDialog.SettingsPanelBase mode)
Update the service parser about the current mode.

Parameters:
mode - A child class of SettingsPanelBase, either local, remote or test.

Copyright © 2005 Verinec, DIUF