Package org.syncany.config.to
Class UserConfigTO
- java.lang.Object
-
- org.syncany.config.to.UserConfigTO
-
public class UserConfigTO extends java.lang.Object
The user config transfer object is a helper data structure that allows storing a user's global system settings such as system properties.It uses the Simple framework for XML serialization, and its corresponding annotation-based configuration.
- See Also:
- Simple framework
-
-
Constructor Summary
Constructors Constructor Description UserConfigTO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SaltedSecretKey
getConfigEncryptionKey()
java.util.Map<java.lang.String,java.lang.String>
getSystemProperties()
boolean
isPreventStandby()
static UserConfigTO
load(java.io.File file)
void
save(java.io.File file)
void
setConfigEncryptionKey(SaltedSecretKey configEncryptionKey)
void
setPreventStandby(boolean preventStandby)
-
-
-
Constructor Detail
-
UserConfigTO
public UserConfigTO()
-
-
Method Detail
-
getSystemProperties
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
-
isPreventStandby
public boolean isPreventStandby()
-
setPreventStandby
public void setPreventStandby(boolean preventStandby)
-
getConfigEncryptionKey
public SaltedSecretKey getConfigEncryptionKey()
-
setConfigEncryptionKey
public void setConfigEncryptionKey(SaltedSecretKey configEncryptionKey)
-
load
public static UserConfigTO load(java.io.File file) throws ConfigException
- Throws:
ConfigException
-
save
public void save(java.io.File file) throws ConfigException
- Throws:
ConfigException
-
-