jSyncManager

org.jSyncManager.Conduit.Email
Class Email

java.lang.Object
  |
  +--org.jSyncManager.API.Conduit.AbstractConduit
        |
        +--org.jSyncManager.Conduit.Email.Email
All Implemented Interfaces:
java.io.Serializable

public class Email
extends AbstractConduit

This jConduit simply dumps the contents of the standard Palm application databases to nicely formatted text files in the users home directory.

Version:
$Revision: 1.11 $
Author:
David Bartmess <dingodave@edingo.net>
Last modified by: $Author: dingodave $.
See Also:
Serialized Form

Field Summary
protected  ConduitHandler conduitHdlr
           
protected  java.util.Properties config
           
protected  ConnectionsPanel configPanel
           
static java.lang.String DBNAME
           
static java.lang.String DUMP_DIRNAME
           
protected  java.util.Vector emailConns
           
protected  byte inbox
           
protected  java.util.HashMap map
           
protected  byte outbox
           
static java.lang.String PROP_FILENAME
           
protected  byte sent
           
protected  java.util.Vector vEmails
           
 
Fields inherited from class org.jSyncManager.API.Conduit.AbstractConduit
configurationPanel, HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY, resources
 
Constructor Summary
Email()
          Creates a new instance of Email
 
Method Summary
 void addEmail_connection(Email_Base email)
          Setter for property email_connections.
protected  javax.swing.JPanel constructConfigPanel()
          Constructs a configuration panel for this jConduit.
 boolean exists(java.lang.String msgid)
           
protected  void fetch(ConduitHandler handler)
           
 java.util.Properties getConfig()
          Getter for property config.
 ConnectionsPanel getConfigPanel()
          Getter for property configPanel.
protected  java.util.Vector getEmail_connections(ConduitHandler handler)
           
 java.util.Vector getEmailConns()
          Getter for property emailConns.
 byte getInbox()
          Getter for property inbox.
 java.util.HashMap getMap()
          Getter for property map.
 byte getOutbox()
          Getter for property outbox.
protected  java.lang.String getResourceBundleName()
          Retrieves the name of the class to use as the Conduits Resource Bundle.
 byte getSent()
          Getter for property sent.
 java.util.Vector getVEmails()
          Getter for property vEmails.
 void readMap()
           
 void setConfig(java.util.Properties config)
          Setter for property config.
 void setConfigPanel(ConnectionsPanel configPanel)
          Setter for property configPanel.
 void setEmail_connections(java.util.Vector email_connections)
          Setter for property email_connections.
 void setEmailConns(java.util.Vector emailConns)
          Setter for property emailConns.
 void setInbox(byte inbox)
          Setter for property inbox.
 void setMap(java.util.HashMap map)
          Setter for property map.
 void setOutbox(byte outbox)
          Setter for property outbox.
 void setSent(byte sent)
          Setter for property sent.
 void setVEmails(java.util.Vector vEmails)
          Setter for property vEmails.
 void startSync(ConduitHandler conduitHandler, DLPUserInfo user)
          This method is called when this jConduit is given the opportunity to synchronize.
 void writeMap()
           
 
Methods inherited from class org.jSyncManager.API.Conduit.AbstractConduit
getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getHandler, getPriority, setHandler, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_FILENAME

public static final java.lang.String PROP_FILENAME

DBNAME

public static final java.lang.String DBNAME

DUMP_DIRNAME

public static final java.lang.String DUMP_DIRNAME

config

protected transient java.util.Properties config

map

protected transient java.util.HashMap map

conduitHdlr

protected transient ConduitHandler conduitHdlr

configPanel

protected transient ConnectionsPanel configPanel

emailConns

protected transient java.util.Vector emailConns

vEmails

protected transient java.util.Vector vEmails

outbox

protected transient byte outbox

inbox

protected transient byte inbox

sent

protected transient byte sent
Constructor Detail

Email

public Email()
      throws javax.mail.MessagingException,
             javax.mail.NoSuchProviderException,
             java.io.IOException
Creates a new instance of Email
Method Detail

constructConfigPanel

protected javax.swing.JPanel constructConfigPanel()
Description copied from class: AbstractConduit
Constructs a configuration panel for this jConduit. If your jConduit requires user supplied configuration information, you may construct a JPanel here to be associated with your jConduit, which GUI applications can use to display to the user prior to synchronization. How this panel is accessed will be application specific. You may return null here to signify that no setting panel is required.
Overrides:
constructConfigPanel in class AbstractConduit
Following copied from class: org.jSyncManager.API.Conduit.AbstractConduit
Returns:
a JPanel containing whatever configuration widgets your jConduit requires.

getResourceBundleName

protected java.lang.String getResourceBundleName()
Description copied from class: AbstractConduit
Retrieves the name of the class to use as the Conduits Resource Bundle. This method should return a String containing the fully-qualified classname of the class to use for this jConduits textual resources. You may return null from this method, however if you do so you're expected to override the getConduitName and getConduitDescription methods to return suitable data. We suggest using Resource Bundles to ensure that your jConduits can be translated to other languages.
Overrides:
getResourceBundleName in class AbstractConduit
Following copied from class: org.jSyncManager.API.Conduit.AbstractConduit
Returns:
the fully-qualified classname of the class to use as this jConduits resource bundle.

startSync

public void startSync(ConduitHandler conduitHandler,
                      DLPUserInfo user)
               throws NotConnectedException
This method is called when this jConduit is given the opportunity to synchronize.
Overrides:
startSync in class AbstractConduit
Parameters:
conduitHandler - he handle to the active ConduitHandler to use for synchronization.
Throws:
NotConnectedException - thrown if the connection to the Palm is lost.

fetch

protected void fetch(ConduitHandler handler)
              throws javax.mail.NoSuchProviderException,
                     javax.mail.MessagingException,
                     java.io.IOException

getEmail_connections

protected java.util.Vector getEmail_connections(ConduitHandler handler)
                                         throws javax.mail.MessagingException,
                                                javax.mail.NoSuchProviderException,
                                                java.io.IOException

setEmail_connections

public void setEmail_connections(java.util.Vector email_connections)
Setter for property email_connections.
Parameters:
email_connections - New value of property email_connections.

addEmail_connection

public void addEmail_connection(Email_Base email)
Setter for property email_connections.
Parameters:
email_connections - New value of property email_connections.

getInbox

public byte getInbox()
Getter for property inbox.
Returns:
Value of property inbox.

setInbox

public void setInbox(byte inbox)
Setter for property inbox.
Parameters:
inbox - New value of property inbox.

getOutbox

public byte getOutbox()
Getter for property outbox.
Returns:
Value of property outbox.

setOutbox

public void setOutbox(byte outbox)
Setter for property outbox.
Parameters:
outbox - New value of property outbox.

getSent

public byte getSent()
Getter for property sent.
Returns:
Value of property sent.

setSent

public void setSent(byte sent)
Setter for property sent.
Parameters:
sent - New value of property sent.

getConfigPanel

public ConnectionsPanel getConfigPanel()
Getter for property configPanel.
Returns:
Value of property configPanel.

setConfigPanel

public void setConfigPanel(ConnectionsPanel configPanel)
Setter for property configPanel.
Parameters:
configPanel - New value of property configPanel.

getEmailConns

public java.util.Vector getEmailConns()
Getter for property emailConns.
Returns:
Value of property emailConns.

setEmailConns

public void setEmailConns(java.util.Vector emailConns)
Setter for property emailConns.
Parameters:
emailConns - New value of property emailConns.

getConfig

public java.util.Properties getConfig()
Getter for property config.
Returns:
Value of property config.

setConfig

public void setConfig(java.util.Properties config)
Setter for property config.
Parameters:
config - New value of property config.

getVEmails

public java.util.Vector getVEmails()
Getter for property vEmails.
Returns:
Value of property vEmails.

setVEmails

public void setVEmails(java.util.Vector vEmails)
Setter for property vEmails.
Parameters:
vEmails - New value of property vEmails.

readMap

public void readMap()
             throws java.io.IOException

writeMap

public void writeMap()
              throws java.io.IOException

exists

public boolean exists(java.lang.String msgid)

getMap

public java.util.HashMap getMap()
Getter for property map.
Returns:
Value of property map.

setMap

public void setMap(java.util.HashMap map)
Setter for property map.
Parameters:
map - New value of property map.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.