public class CockpitPreferences
extends java.lang.Object
implements java.io.Serializable
Stores Cockpit's preferences as set by the user via the
PreferencesDialog
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UPLOAD_ACL_PERMISSION_PRIVATE
Represents ACL permissions to make objects private.
|
static java.lang.String |
UPLOAD_ACL_PERMISSION_PUBLIC_READ
Represents ACL permissions to make objects readable by anyone.
|
static java.lang.String |
UPLOAD_ACL_PERMISSION_PUBLIC_READ_WRITE
Represents ACL permissions to make objects readable and writable by anyone.
|
Constructor and Description |
---|
CockpitPreferences() |
Modifier and Type | Method and Description |
---|---|
void |
fromProperties(java.util.Properties properties) |
java.lang.String |
getEncryptionAlgorithm() |
java.lang.String |
getEncryptionPassword() |
java.lang.String |
getUploadACLPermission() |
java.lang.String |
getUploadStorageClass() |
boolean |
isEncryptionPasswordSet() |
boolean |
isRememberPreferences() |
boolean |
isUploadCompressionActive() |
boolean |
isUploadEncryptionActive() |
void |
setEncryptionAlgorithm(java.lang.String encryptionAlgorithm) |
void |
setEncryptionPassword(java.lang.String encryptionPasswrod) |
void |
setRememberPreferences(boolean rememberPreferences) |
void |
setUploadACLPermission(java.lang.String uploadACLPermission)
Set the ACL permissions string setting.
|
void |
setUploadCompressionActive(boolean uploadCompressionActive) |
void |
setUploadEncryptionActive(boolean uploadEncryptionActive) |
void |
setUploadStorageClass(java.lang.String storageClass) |
java.util.Properties |
toProperties() |
public static final java.lang.String UPLOAD_ACL_PERMISSION_PRIVATE
public static final java.lang.String UPLOAD_ACL_PERMISSION_PUBLIC_READ
public static final java.lang.String UPLOAD_ACL_PERMISSION_PUBLIC_READ_WRITE
public java.lang.String getEncryptionPassword()
public void setEncryptionPassword(java.lang.String encryptionPasswrod)
public java.lang.String getEncryptionAlgorithm()
public void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
public boolean isEncryptionPasswordSet()
public java.lang.String getUploadACLPermission()
public void setUploadACLPermission(java.lang.String uploadACLPermission)
uploadACLPermission
- the ACL permission setting, which must match one of the UPLOAD_ACL_PERMISSION_xyz
constants contained in this class.public boolean isUploadCompressionActive()
public void setUploadCompressionActive(boolean uploadCompressionActive)
public boolean isUploadEncryptionActive()
public void setUploadEncryptionActive(boolean uploadEncryptionActive)
public java.lang.String getUploadStorageClass()
public void setUploadStorageClass(java.lang.String storageClass)
public void setRememberPreferences(boolean rememberPreferences)
public boolean isRememberPreferences()
public java.util.Properties toProperties()
public void fromProperties(java.util.Properties properties)