de.clab.osami.conferencing.vlc.config
Interface IStorageManager

All Known Implementing Classes:
StorageManager

public interface IStorageManager


Field Summary
static java.lang.String LINUX_PATH
           
static java.lang.String WIN_PATH
           
 
Method Summary
 java.lang.String getDefaultPath()
          Returns the current default path
 IConfiguration loadConfiguration()
          Loads a configuration from a default path.
 IConfiguration loadConfiguration(java.lang.String path)
          loads configuration from a given path.
 void saveConfiguration(IConfiguration config)
          Stores a given configuration to a default path.
 void saveConfiguration(IConfiguration config, java.lang.String path)
          saves a configuration to a given path.
 java.lang.String setDefaultPath()
          resets the default path to the origin default path.
 java.lang.String setDefaultPath(java.lang.String path)
          sets the default path to store configurations.
 

Field Detail

LINUX_PATH

static final java.lang.String LINUX_PATH

WIN_PATH

static final java.lang.String WIN_PATH
Method Detail

saveConfiguration

void saveConfiguration(IConfiguration config)
Stores a given configuration to a default path.

Parameters:
configuration - is to be stored into the file

loadConfiguration

IConfiguration loadConfiguration()
Loads a configuration from a default path.

Returns:
configuration Object created from the configuration file

loadConfiguration

IConfiguration loadConfiguration(java.lang.String path)
loads configuration from a given path. The path will become default for other operations.

Parameters:
path -
Returns:
IConfiguration

saveConfiguration

void saveConfiguration(IConfiguration config,
                       java.lang.String path)
saves a configuration to a given path. The path will become default for other operations.

Parameters:
config -
path -

setDefaultPath

java.lang.String setDefaultPath(java.lang.String path)
sets the default path to store configurations. If the parameter is null, the origin default path will be set.

Parameters:
path -
Returns:
String the new default path

getDefaultPath

java.lang.String getDefaultPath()
Returns the current default path

Returns:

setDefaultPath

java.lang.String setDefaultPath()
resets the default path to the origin default path.

Returns:
String default path