org.jets3t.apps.cockpit
Class CockpitPreferences

java.lang.Object
  extended by org.jets3t.apps.cockpit.CockpitPreferences
All Implemented Interfaces:
java.io.Serializable

public class CockpitPreferences
extends java.lang.Object
implements java.io.Serializable

Stores Cockpit's preferences as set by the user via the PreferencesDialog.

See Also:
Serialized Form

Field Summary
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 Summary
CockpitPreferences()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPLOAD_ACL_PERMISSION_PRIVATE

public static final java.lang.String UPLOAD_ACL_PERMISSION_PRIVATE
Represents ACL permissions to make objects private.

See Also:
Constant Field Values

UPLOAD_ACL_PERMISSION_PUBLIC_READ

public static final java.lang.String UPLOAD_ACL_PERMISSION_PUBLIC_READ
Represents ACL permissions to make objects readable by anyone.

See Also:
Constant Field Values

UPLOAD_ACL_PERMISSION_PUBLIC_READ_WRITE

public static final java.lang.String UPLOAD_ACL_PERMISSION_PUBLIC_READ_WRITE
Represents ACL permissions to make objects readable and writable by anyone.

See Also:
Constant Field Values
Constructor Detail

CockpitPreferences

public CockpitPreferences()
Method Detail

getEncryptionPassword

public java.lang.String getEncryptionPassword()

setEncryptionPassword

public void setEncryptionPassword(java.lang.String encryptionPasswrod)

getEncryptionAlgorithm

public java.lang.String getEncryptionAlgorithm()

setEncryptionAlgorithm

public void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)

isEncryptionPasswordSet

public boolean isEncryptionPasswordSet()

getUploadACLPermission

public java.lang.String getUploadACLPermission()
Returns:
the ACL permission setting, which will match one of the UPLOAD_ACL_PERMISSION_xyz constants contained in this class.

setUploadACLPermission

public void setUploadACLPermission(java.lang.String uploadACLPermission)
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

public java.lang.String getUploadStorageClass()

setUploadStorageClass

public void setUploadStorageClass(java.lang.String storageClass)

setRememberPreferences

public void setRememberPreferences(boolean rememberPreferences)

isRememberPreferences

public boolean isRememberPreferences()

toProperties

public java.util.Properties toProperties()

fromProperties

public void fromProperties(java.util.Properties properties)