|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jSyncManager.API.Conduit.AbstractConduit
org.jSyncManager.API.Conduit.AbstractInstaller
An Abstract jConduit used to install whole databases to the handheld. This jConduit allows you to create your own jConduit to install whole databases, simply by providing an array of databases to be installed, and a bit of decision making logic.
| Field Summary |
| Fields inherited from class org.jSyncManager.API.Conduit.AbstractConduit |
CANCEL_BUTTON_PRESSED, configurationPanel, HELP_BUTTON_PRESSED, HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY, OK_BUTTON_PRESSED, resources |
| Constructor Summary | |
AbstractInstaller()
Abstract Installer Constructor. |
|
| Method Summary | |
protected abstract void |
clearDatabaseList()
A method to clear the database list supplied by your AbstractInstaller implementation. |
protected abstract void |
exceptionInstallingDatabase(DLPDatabase db,
ConduitHandler handler,
ConduitHandlerException e)
A method to handle when an exception is encountered while trying to install a database. |
protected abstract DLPDatabase[] |
getDatabaseList()
Returns a list of databases to be installed to the handheld at sync time. |
protected abstract void |
installingDatabase(DLPDatabase db,
ConduitHandler handler)
A method to handle when a database is to be installed. |
protected abstract boolean |
isDatabaseInstallAllowed(DLPDatabase db,
ConduitHandler handler,
DLPUserInfo user)
Determines wether or not this database should be installed. |
protected abstract void |
skippingDatabase(DLPDatabase db,
ConduitHandler handler)
A method to handle when a database is to be skipped (ie: not installed). |
void |
startSync(ConduitHandler cHandler,
DLPUserInfo user)
This method is called when this jConduit is given the opportunity to synchronize. |
| Methods inherited from class org.jSyncManager.API.Conduit.AbstractConduit |
constructConfigPanel, doInitialization, getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getPriority, getResourceBundleName, initialize, jConduitDialogActionPerformed, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractInstaller()
| Method Detail |
protected abstract DLPDatabase[] getDatabaseList()
DLPDatabase
protected abstract boolean isDatabaseInstallAllowed(DLPDatabase db,
ConduitHandler handler,
DLPUserInfo user)
throws NotConnectedException
db - the database object to be installed.handler - the ConduitHandler object for this sync (so you can check handheld data if necessary)user - the DLPUserInfo object for the currently syncing user.
NotConnectedExceptionprotected abstract void clearDatabaseList()
protected abstract void installingDatabase(DLPDatabase db,
ConduitHandler handler)
throws NotConnectedException
db - the database that is about to be installed.
NotConnectedException
protected abstract void skippingDatabase(DLPDatabase db,
ConduitHandler handler)
throws NotConnectedException
db - the database that is about to be skipped.
NotConnectedException
protected abstract void exceptionInstallingDatabase(DLPDatabase db,
ConduitHandler handler,
ConduitHandlerException e)
throws NotConnectedException
db - the database that was being installed when the exception occurred.
NotConnectedException
public final void startSync(ConduitHandler cHandler,
DLPUserInfo user)
throws NotConnectedException
startSync in class AbstractConduitcHandler - he handle to the active ConduitHandler to use for synchronization.user - the user information object for the synchronizing handheld.
NotConnectedException - thrown if the connection to the Palm is lost.
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||