Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.data.ejb.address
Class FtpAddressData  view FtpAddressData download FtpAddressData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.ejb.SettingData
          extended bycom.flexstor.common.data.ejb.address.AddressData
              extended bycom.flexstor.common.data.ejb.address.FtpAddressData
All Implemented Interfaces:
java.io.Serializable

public class FtpAddressData
extends AddressData

This class supports state data for FtpAddress. A Data class holds
all of the state information for a corresponding class and reference
pointers to other classes

Since:
FLEXSTOR.db 3.0
Version:
1.0, 12/19/98

Field Summary
static java.lang.String IDENTIFIER
           
protected  java.lang.String password
           
protected  java.lang.String proxyHost
           
protected  java.lang.String proxyPassword
           
protected  int proxyPort
           
protected  java.lang.String proxyUserID
           
protected  java.lang.String remoteDirectory
           
protected  java.lang.String userid
           
 
Fields inherited from class com.flexstor.common.data.ejb.address.AddressData
sAddress, sDescription
 
Fields inherited from class com.flexstor.common.data.ejb.SettingData
bIsEditable, EMAIL_ADDRESS, FTP_ADDRESS, IMPORT, key, SEND, sName, timeStamp
 
Fields inherited from class com.flexstor.common.data.ejb.Data
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE
 
Constructor Summary
FtpAddressData()
          Default constructor for the FtpAddressData class
FtpAddressData(FtpAddressData orginal)
          Creates a FtpAddressData object based on an orginal FtpAddressData object.
FtpAddressData(java.lang.String aName)
          Constructor for the FtpAddressData class
 
Method Summary
 com.flexstor.common.data.ejb.SettingData cloneObject()
          Clones this object.
 boolean equals(java.lang.Object o)
          Determine if these two objects are equal, i.e.
 java.lang.String getPassword()
          Return the password of the authorized user of the ftp address
 java.lang.String getProxyHost()
          Return the name of the firewall server in dnsname.domain.tld format
 java.lang.String getProxyPassword()
          Return the password of an proxy user authorized for ftp access through the firewall
 int getProxyPort()
          Return the port that the firewall allows ftp traffic through
 java.lang.String getProxyUserID()
          Return the userid of a proxy user authorized for ftp access through the firewall
 com.flexstor.common.keys.ejb.FtpAddressKey getReference()
          Deprecated. see getKey()
 java.lang.String getRemoteDirectory()
          Return the initial directory assigned once a user successfully logs into an ftp server
 java.lang.String getUserID()
          Return the id of an authorized user of the ftp server
private  boolean isPasswordEqual(java.lang.String aPassword)
          Checks whether two password strings have equal values.
private  boolean isProxyHostEqual(java.lang.String aProxyHost)
          Checks whether two proxy host strings have equal values.
private  boolean isProxyPasswordEqual(java.lang.String aProxyPassword)
          Checks whether two proxy password strings have equal values.
private  boolean isProxyUserIDEqual(java.lang.String aProxyUserID)
          Checks whether two proxy userid strings have equal values.
private  boolean isRemoteDirectoryEqual(java.lang.String aRemoteDirectory)
          Checks whether two remote directory strings have equal values.
private  boolean isUserIDEqual(java.lang.String aUserID)
          Checks whether two name strings have equal values.
 void setKey(com.flexstor.common.keys.ejb.SettingKey key)
          Sets the oracle key.
 void setPassword(java.lang.String aPassword)
          Set the password of the authorized user of the ftp address
 void setProxyHost(java.lang.String aHost)
          Set the name of the firewall server in dnsname.domain.tld format
 void setProxyPassword(java.lang.String aPassword)
          Set the password of an proxy user authorized for ftp access through the firewall
 void setProxyPort(int aPortNumber)
          Set the port that the firewall allows ftp traffic through
 void setProxyUserID(java.lang.String aUserID)
          Set the name of a proxy user authorized for ftp access through the firewall
 void setReference(com.flexstor.common.keys.ejb.FtpAddressKey aKey)
          Deprecated. see setKey(FtpAddressKey aKey)
 void setRemoteDirectory(java.lang.String aDirectory)
          Set the initial directory or directory path assigned once a user successfully logs into an ftp server
 void setUserID(java.lang.String aUserID)
          Set the id of an authorized user of the ftp server
 void synchronize(FtpAddressData original)
          Copies all members from the argument into the current object.
 java.lang.String toString()
          Return the contents of the instance as a String.
 
Methods inherited from class com.flexstor.common.data.ejb.address.AddressData
getAddress, getDescription, getName, hashcode, setAddress, setDescription, setName, synchronize
 
Methods inherited from class com.flexstor.common.data.ejb.SettingData
getKey, getTimestamp, isEditable, setEditable, setTimestamp, synchronize
 
Methods inherited from class com.flexstor.common.data.ejb.Data
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

userid

protected java.lang.String userid

password

protected java.lang.String password

remoteDirectory

protected java.lang.String remoteDirectory

proxyHost

protected java.lang.String proxyHost

proxyPassword

protected java.lang.String proxyPassword

proxyPort

protected int proxyPort

proxyUserID

protected java.lang.String proxyUserID
Constructor Detail

FtpAddressData

public FtpAddressData()
Default constructor for the FtpAddressData class

Warning Any objects created with this constructor are not updatable or insertable to the database


FtpAddressData

public FtpAddressData(java.lang.String aName)
Constructor for the FtpAddressData class

Warning Any objects created with this constructor are not updatable (insertable, but not updatable) to the database


FtpAddressData

public FtpAddressData(FtpAddressData orginal)
Creates a FtpAddressData object based on an orginal FtpAddressData object. This constructor is intended to be used when duplicating this object.

Method Detail

cloneObject

public com.flexstor.common.data.ejb.SettingData cloneObject()
Clones this object.

Overrides:
cloneObject in class AddressData

synchronize

public void synchronize(FtpAddressData original)
Copies all members from the argument into the current object. This methods is used when the server returns an updated object to synchronize the client instance.


equals

public boolean equals(java.lang.Object o)
Determine if these two objects are equal, i.e. their attributes are equal. This method will not test the equality of references to other objects

Overrides:
equals in class AddressData

getPassword

public java.lang.String getPassword()
Return the password of the authorized user of the ftp address


getProxyHost

public java.lang.String getProxyHost()
Return the name of the firewall server in dnsname.domain.tld format


getProxyPassword

public java.lang.String getProxyPassword()
Return the password of an proxy user authorized for ftp access through the firewall


getProxyPort

public int getProxyPort()
Return the port that the firewall allows ftp traffic through


getProxyUserID

public java.lang.String getProxyUserID()
Return the userid of a proxy user authorized for ftp access through the firewall


getReference

public com.flexstor.common.keys.ejb.FtpAddressKey getReference()
Deprecated. see getKey()

Return this instance's database object reference


setReference

public void setReference(com.flexstor.common.keys.ejb.FtpAddressKey aKey)
Deprecated. see setKey(FtpAddressKey aKey)

Return this instance's database object reference


getRemoteDirectory

public java.lang.String getRemoteDirectory()
Return the initial directory assigned once a user successfully logs into an ftp server


getUserID

public java.lang.String getUserID()
Return the id of an authorized user of the ftp server


isPasswordEqual

private boolean isPasswordEqual(java.lang.String aPassword)
Checks whether two password strings have equal values.


isProxyHostEqual

private boolean isProxyHostEqual(java.lang.String aProxyHost)
Checks whether two proxy host strings have equal values.


isProxyPasswordEqual

private boolean isProxyPasswordEqual(java.lang.String aProxyPassword)
Checks whether two proxy password strings have equal values.


isProxyUserIDEqual

private boolean isProxyUserIDEqual(java.lang.String aProxyUserID)
Checks whether two proxy userid strings have equal values.


isRemoteDirectoryEqual

private boolean isRemoteDirectoryEqual(java.lang.String aRemoteDirectory)
Checks whether two remote directory strings have equal values.


isUserIDEqual

private boolean isUserIDEqual(java.lang.String aUserID)
Checks whether two name strings have equal values.


setPassword

public void setPassword(java.lang.String aPassword)
Set the password of the authorized user of the ftp address


setProxyHost

public void setProxyHost(java.lang.String aHost)
Set the name of the firewall server in dnsname.domain.tld format


setProxyPassword

public void setProxyPassword(java.lang.String aPassword)
Set the password of an proxy user authorized for ftp access through the firewall


setProxyPort

public void setProxyPort(int aPortNumber)
Set the port that the firewall allows ftp traffic through


setProxyUserID

public void setProxyUserID(java.lang.String aUserID)
Set the name of a proxy user authorized for ftp access through the firewall


setKey

public void setKey(com.flexstor.common.keys.ejb.SettingKey key)
Sets the oracle key. Enforce type safety.

Overrides:
setKey in class AddressData

setRemoteDirectory

public void setRemoteDirectory(java.lang.String aDirectory)
Set the initial directory or directory path assigned once a user successfully logs into an ftp server


setUserID

public void setUserID(java.lang.String aUserID)
Set the id of an authorized user of the ftp server


toString

public java.lang.String toString()
Return the contents of the instance as a String. This method is strictly for use by testing classes
and should not be called by business objects

Overrides:
toString in class AddressData