Package org.jets3t.apps.cockpit
Class CockpitPreferences
java.lang.Object
org.jets3t.apps.cockpit.CockpitPreferences
- All Implemented Interfaces:
Serializable
Stores Cockpit's preferences as set by the user via the
PreferencesDialog
.
- Author:
- James Murty
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromProperties
(Properties properties) boolean
boolean
boolean
boolean
void
setEncryptionAlgorithm
(String encryptionAlgorithm) void
setEncryptionPassword
(String encryptionPasswrod) void
setRememberPreferences
(boolean rememberPreferences) void
setUploadACLPermission
(String uploadACLPermission) Set the ACL permissions string setting.void
setUploadCompressionActive
(boolean uploadCompressionActive) void
setUploadEncryptionActive
(boolean uploadEncryptionActive) void
setUploadStorageClass
(String storageClass)
-
Field Details
-
UPLOAD_ACL_PERMISSION_PRIVATE
Represents ACL permissions to make objects private.- See Also:
-
UPLOAD_ACL_PERMISSION_PUBLIC_READ
Represents ACL permissions to make objects readable by anyone.- See Also:
-
UPLOAD_ACL_PERMISSION_PUBLIC_READ_WRITE
Represents ACL permissions to make objects readable and writable by anyone.- See Also:
-
-
Constructor Details
-
CockpitPreferences
public CockpitPreferences()
-
-
Method Details
-
getEncryptionPassword
-
setEncryptionPassword
-
getEncryptionAlgorithm
-
setEncryptionAlgorithm
-
isEncryptionPasswordSet
public boolean isEncryptionPasswordSet() -
getUploadACLPermission
- Returns:
- the ACL permission setting, which will match one of the UPLOAD_ACL_PERMISSION_xyz constants contained in this class.
-
setUploadACLPermission
Set the ACL permissions string setting.- Parameters:
uploadACLPermission
- the ACL permission setting, which must match one of the UPLOAD_ACL_PERMISSION_xyz constants contained in this class.
-
isUploadCompressionActive
public boolean isUploadCompressionActive() -
setUploadCompressionActive
public void setUploadCompressionActive(boolean uploadCompressionActive) -
isUploadEncryptionActive
public boolean isUploadEncryptionActive() -
setUploadEncryptionActive
public void setUploadEncryptionActive(boolean uploadEncryptionActive) -
getUploadStorageClass
-
setUploadStorageClass
-
setRememberPreferences
public void setRememberPreferences(boolean rememberPreferences) -
isRememberPreferences
public boolean isRememberPreferences() -
toProperties
-
fromProperties
-