Package com.jscape.inet.mft
Class DropZoneDescriptor
- java.lang.Object
-
- com.jscape.inet.mft.DropZoneDescriptor
-
- All Implemented Interfaces:
com.jscape.util.db.IntVersioned,java.io.Serializable
public class DropZoneDescriptor extends java.lang.Object implements java.io.Serializable, com.jscape.util.db.IntVersionedDrop zone descriptor.- Author:
- Alex Usun
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DropZoneDescriptor()Used in serialization subsystem.DropZoneDescriptor(DropZoneDescriptor that)DropZoneDescriptor(java.lang.String zoneName, java.lang.String accountName, java.lang.String virtualZoneDirectory, char[] password, boolean createDirectoryIfNotExists, boolean overwriteFileIfExists, java.lang.String urlBrandingName, java.lang.String owner, java.lang.String[] tags, long creationDate, int version)DropZoneDescriptor(java.lang.String zoneName, java.lang.String accountName, java.lang.String virtualZoneDirectory, com.jscape.inet.vfs.Password password, boolean createDirectoryIfNotExists, boolean overwriteFileIfExists, java.lang.String urlBrandingName, java.lang.String owner, java.lang.String[] tags, long creationDate, int version)Creates a new descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccountName()Returns account name.longgetCreationDate()java.lang.StringgetOwner()Returns owner account name.byte[]getPasswordHash()Returns drop zone password hash.java.lang.String[]getTags()java.net.URIgetUri()java.lang.StringgetUrlBrandingName()Returns URL branding name.intgetVersion()java.lang.StringgetVirtualZoneDirectory()Returns virtual zone directory path in account's file system.java.lang.StringgetZoneName()Returns drop zone name.booleanisCreateDirectoryIfNotExists()Returns whether directory will be created if it does not exist.booleanisOverwriteFileIfExists()Returns whether file will be overwritten if already existscom.jscape.inet.vfs.Passwordpassword()Returns drop zone password.voidsetAccountName(java.lang.String value)Sets account name.voidsetCreateDirectoryIfNotExists(boolean value)Sets whether directory should be created if it does not exist.voidsetCreationDate(long value)voidsetOverwriteFileIfExists(boolean value)Sets whether file will be overwritten if already existsvoidsetOwner(java.lang.String value)Sets an owner account name.voidsetPassword(char[] value)Sets a new drop zone password.voidsetPasswordHash(byte[] value)Sets the drop zone password hashvoidsetTags(java.lang.String[] value)voidsetUri(java.net.URI value)voidsetUrlBrandingName(java.lang.String value)Sets URL branding name to map to the drop zone.voidsetVersion(int value)voidsetVirtualZoneDirectory(java.lang.String value)Sets virtual zone directory path in account's file system.voidsetZoneName(java.lang.String value)Sets drop zone name.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DropZoneDescriptor
public DropZoneDescriptor(java.lang.String zoneName, java.lang.String accountName, java.lang.String virtualZoneDirectory, com.jscape.inet.vfs.Password password, boolean createDirectoryIfNotExists, boolean overwriteFileIfExists, java.lang.String urlBrandingName, java.lang.String owner, java.lang.String[] tags, long creationDate, int version)Creates a new descriptor.- Parameters:
zoneName- a drop zone nameaccountName- an account namevirtualZoneDirectory- a virtual zone directory path in account's file systempassword- an access passwordcreateDirectoryIfNotExists- whether directory should be created if it does not existoverwriteFileIfExists- whether file should be overwritten if already existurlBrandingName- an URL branding to map to the drop zoneowner- indicate who the owner of the drop zone is
-
DropZoneDescriptor
public DropZoneDescriptor(DropZoneDescriptor that)
-
DropZoneDescriptor
public DropZoneDescriptor(java.lang.String zoneName, java.lang.String accountName, java.lang.String virtualZoneDirectory, char[] password, boolean createDirectoryIfNotExists, boolean overwriteFileIfExists, java.lang.String urlBrandingName, java.lang.String owner, java.lang.String[] tags, long creationDate, int version)
-
DropZoneDescriptor
public DropZoneDescriptor()
Used in serialization subsystem.
-
-
Method Detail
-
getZoneName
public java.lang.String getZoneName()
Returns drop zone name.- Returns:
- drop zone name
-
setZoneName
public void setZoneName(java.lang.String value)
Sets drop zone name.- Parameters:
value- a new drop zone name
-
getAccountName
public java.lang.String getAccountName()
Returns account name.- Returns:
- an account name
-
setAccountName
public void setAccountName(java.lang.String value)
Sets account name.- Parameters:
value- a new account name
-
getVirtualZoneDirectory
public java.lang.String getVirtualZoneDirectory()
Returns virtual zone directory path in account's file system.- Returns:
- virtual zone directory path in account's file system
-
setVirtualZoneDirectory
public void setVirtualZoneDirectory(java.lang.String value)
Sets virtual zone directory path in account's file system.- Parameters:
value- a new virtual zone directory path in account's file system
-
password
public com.jscape.inet.vfs.Password password()
Returns drop zone password.- Returns:
- the drop zone password
-
getPasswordHash
public byte[] getPasswordHash()
Returns drop zone password hash.- Returns:
- the dro zone password hash
-
setPasswordHash
public void setPasswordHash(byte[] value)
Sets the drop zone password hash- Parameters:
value- the drop zone password hash
-
setPassword
public void setPassword(char[] value)
Sets a new drop zone password.- Parameters:
value- the new drop zone password
-
isCreateDirectoryIfNotExists
public boolean isCreateDirectoryIfNotExists()
Returns whether directory will be created if it does not exist.- Returns:
trueif directory will be created;falseotherwise
-
setCreateDirectoryIfNotExists
public void setCreateDirectoryIfNotExists(boolean value)
Sets whether directory should be created if it does not exist.- Parameters:
value-trueif directory should be created
-
isOverwriteFileIfExists
public boolean isOverwriteFileIfExists()
Returns whether file will be overwritten if already exists- Returns:
trueif overwrite file;falseotherwise
-
setOverwriteFileIfExists
public void setOverwriteFileIfExists(boolean value)
Sets whether file will be overwritten if already exists- Parameters:
value-trueif file should be overwritten
-
getUrlBrandingName
public java.lang.String getUrlBrandingName()
Returns URL branding name.- Returns:
- URL branding name
-
setUrlBrandingName
public void setUrlBrandingName(java.lang.String value)
Sets URL branding name to map to the drop zone.- Parameters:
value- URL Branding name ornullif there is no any branding
-
getOwner
public java.lang.String getOwner()
Returns owner account name.- Returns:
- an owner name or
nullif zone doesn't belong to any owner
-
setOwner
public void setOwner(java.lang.String value)
Sets an owner account name.- Parameters:
value- a new owner account name ornullif zone doesn't belong to any owner
-
getUri
public java.net.URI getUri()
-
setUri
public void setUri(java.net.URI value)
-
getTags
public java.lang.String[] getTags()
-
setTags
public void setTags(java.lang.String[] value)
-
getCreationDate
public long getCreationDate()
-
setCreationDate
public void setCreationDate(long value)
-
getVersion
public int getVersion()
- Specified by:
getVersionin interfacecom.jscape.util.db.IntVersioned
-
setVersion
public void setVersion(int value)
- Specified by:
setVersionin interfacecom.jscape.util.db.IntVersioned
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-