net.scp
Class ScpBean

java.lang.Object
  extended by net.scp.ScpBean
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ScpModelChangeEventListener

public class ScpBean
extends java.lang.Object
implements ScpModelChangeEventListener, java.io.Serializable

Copyright DocJava, inc. User: lyon

Date: Dec 13, 2004

Time: 6:31:14 AM

See Also:
Serialized Form

Constructor Summary
ScpBean()
           
 
Method Summary
 void addModelChangeListener(ScpModelChangeEventListener smcl)
           
static ScpBean fromXml(java.lang.String xmlString)
           
 java.lang.String getHost()
           
 java.lang.String getLocalFile()
           
 java.lang.String getPassword()
           
 java.lang.String getRemoteFile()
           
 SimpleUserInfo getSimpleUserInfo()
           
 java.lang.String getUser()
           
 boolean isScp()
           
 boolean isValidData()
           
static void main(java.lang.String[] args)
          If uploads file, rerun the following main to re-initialize settings for users.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
static ScpBean restore()
          restores the properties from the preference in the user root.
 void save()
          saves the properties to the Preferences of the userRoot
 void scpModelChanged(ScpModelChangeEvent modelChangedEvent)
           
 void setHost(java.lang.String host)
           
 void setLocalFile(java.lang.String localFile)
           
 void setPassword(java.lang.String password)
           
 void setRemoteFile(java.lang.String remoteFile)
           
 void setScp(boolean scp)
           
 void setUser(java.lang.String user)
           
 java.lang.String toString()
           
 java.lang.String toXml()
           
 void update()
           
 void upload()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScpBean

public ScpBean()
Method Detail

addModelChangeListener

public void addModelChangeListener(ScpModelChangeEventListener smcl)

getUser

public java.lang.String getUser()

setUser

public void setUser(java.lang.String user)

update

public void update()

getHost

public java.lang.String getHost()

setHost

public void setHost(java.lang.String host)

getLocalFile

public java.lang.String getLocalFile()

setLocalFile

public void setLocalFile(java.lang.String localFile)

getRemoteFile

public java.lang.String getRemoteFile()

setRemoteFile

public void setRemoteFile(java.lang.String remoteFile)

isValidData

public boolean isValidData()

setPassword

public void setPassword(java.lang.String password)

fromXml

public static ScpBean fromXml(java.lang.String xmlString)

toXml

public java.lang.String toXml()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

save

public void save()
saves the properties to the Preferences of the userRoot


main

public static void main(java.lang.String[] args)
If uploads file, rerun the following main to re-initialize settings for users. This may occur if UID's or passwords are changed.

Parameters:
args -

restore

public static ScpBean restore()
restores the properties from the preference in the user root.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

scpModelChanged

public void scpModelChanged(ScpModelChangeEvent modelChangedEvent)
Specified by:
scpModelChanged in interface ScpModelChangeEventListener

getSimpleUserInfo

public SimpleUserInfo getSimpleUserInfo()

getPassword

public java.lang.String getPassword()

upload

public void upload()

isScp

public boolean isScp()

setScp

public void setScp(boolean scp)