de.clab.osami.conferencing.vlc.config
Class StorageManager

java.lang.Object
  extended by de.clab.osami.conferencing.vlc.config.StorageManager
All Implemented Interfaces:
IStorageManager

public class StorageManager
extends java.lang.Object
implements IStorageManager

Author:
tamasmiklossy

Field Summary
 
Fields inherited from interface de.clab.osami.conferencing.vlc.config.IStorageManager
LINUX_PATH, WIN_PATH
 
Method Summary
 java.lang.String getDefaultPath()
          Returns the current default path
static IStorageManager getInstance()
           
 IConfiguration loadConfiguration()
          Loads a configuration from a default path.
 IConfiguration loadConfiguration(java.lang.String path)
          loads configuration from a given path.
 void saveConfiguration(IConfiguration configuration)
          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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IStorageManager getInstance()

loadConfiguration

public IConfiguration loadConfiguration(java.lang.String path)
Description copied from interface: IStorageManager
loads configuration from a given path. The path will become default for other operations.

Specified by:
loadConfiguration in interface IStorageManager
Returns:
IConfiguration

loadConfiguration

public IConfiguration loadConfiguration()
Description copied from interface: IStorageManager
Loads a configuration from a default path.

Specified by:
loadConfiguration in interface IStorageManager
Returns:
configuration Object created from the configuration file

saveConfiguration

public void saveConfiguration(IConfiguration configuration)
Description copied from interface: IStorageManager
Stores a given configuration to a default path.

Specified by:
saveConfiguration in interface IStorageManager

saveConfiguration

public void saveConfiguration(IConfiguration config,
                              java.lang.String path)
Description copied from interface: IStorageManager
saves a configuration to a given path. The path will become default for other operations.

Specified by:
saveConfiguration in interface IStorageManager

setDefaultPath

public java.lang.String setDefaultPath(java.lang.String path)
Description copied from interface: IStorageManager
sets the default path to store configurations. If the parameter is null, the origin default path will be set.

Specified by:
setDefaultPath in interface IStorageManager
Returns:
String the new default path

setDefaultPath

public java.lang.String setDefaultPath()
Description copied from interface: IStorageManager
resets the default path to the origin default path.

Specified by:
setDefaultPath in interface IStorageManager
Returns:
String default path

getDefaultPath

public java.lang.String getDefaultPath()
Description copied from interface: IStorageManager
Returns the current default path

Specified by:
getDefaultPath in interface IStorageManager
Returns: