|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object base.jdbs.ConfigurationManager
public class ConfigurationManager
This is the class where every JDBS configuration paramenter is placed. This class is helpful to write and load parameters configured by the user in xml format and it is used from the entire application. Only one instance of this class is present at runtime in the system
Constructor Summary | |
---|---|
protected |
ConfigurationManager()
The default constructor.* |
Method Summary | |
---|---|
java.lang.Object |
fromXml(org.w3c.dom.Document document)
This method reads from an XML document various configuration parameters for the JDBS. |
SecurityLevel |
getDefaultBackupSecurityLevel()
|
static ConfigurationManager |
getInstance()
|
java.io.File |
getKeyRingLocation()
|
NetworkConnectionType |
getNetworkConnectionType()
|
Repository |
getRepository()
|
User |
getUser()
|
java.lang.String |
getUserLocation()
|
boolean |
isEnabledPeerDownloadAuthentication()
|
static void |
loadConfiguration()
|
static void |
saveConfiguration()
|
void |
setDefaultBackupSecurityLevel(SecurityLevel defaultBackupSecurityLevel)
|
void |
setEnabledPeerDownloadAuthentication(boolean enabledPeerDownloadAuthentication)
|
void |
setKeyRingLocation(java.io.File keyRingLocation)
|
void |
setNetworkConnectionType(NetworkConnectionType networkConnectionType)
|
void |
setUser(User user)
|
void |
setUserLocation(java.lang.String userLocation)
|
org.w3c.dom.Node |
toXml(org.w3c.dom.Document document)
This method writes to an XML document various configuration parameters of JDBS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConfigurationManager()
Method Detail |
---|
public static ConfigurationManager getInstance()
public Repository getRepository()
public java.lang.Object fromXml(org.w3c.dom.Document document)
fromXml
in interface IXMLLoadable
document
- An XML document that contains a list of configuration
parameters for the JDBS.public org.w3c.dom.Node toXml(org.w3c.dom.Document document)
toXml
in interface IXMLSaveable
document
- An XML document that will contain a list of configuration
parameters for the JDBS.public static void loadConfiguration()
public static void saveConfiguration()
public SecurityLevel getDefaultBackupSecurityLevel()
public void setDefaultBackupSecurityLevel(SecurityLevel defaultBackupSecurityLevel)
defaultBackupSecurityLevel
- The defaultBackupSecurityLevel to set.public java.io.File getKeyRingLocation()
public void setKeyRingLocation(java.io.File keyRingLocation)
keyRingLocation
- The keyRingLocation to set.public java.lang.String getUserLocation()
public void setUserLocation(java.lang.String userLocation)
userLocation
- The userLocation to set.public User getUser()
public void setUser(User user)
user
- The user to set.public boolean isEnabledPeerDownloadAuthentication()
public void setEnabledPeerDownloadAuthentication(boolean enabledPeerDownloadAuthentication)
enabledPeerDownloadAuthentication
- The enabledPeerDownloadAuthentication to set.public NetworkConnectionType getNetworkConnectionType()
public void setNetworkConnectionType(NetworkConnectionType networkConnectionType)
networkConnectionType
- The networkConnectionType to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |