com.sybase.uep.bobclient.actions
Class SyncPublicationAction

java.lang.Object
  extended by com.sybase.uep.bobclient.actions.Action
      extended by com.sybase.uep.bobclient.actions.SyncPublicationAction
All Implemented Interfaces:
IBOBAction, VariableProperties, java.lang.Runnable

public class SyncPublicationAction
extends Action
implements VariableProperties

This is the sync publication action class

It is used to launch a publication based synchronization

Author:
tqiu
See Also:
Action

Field Summary
 
Fields inherited from interface com.sybase.uep.bobclient.constants.VariableProperties
DEVICE_DATE, DEVICE_EMAIL, DEVICE_FLASH_FREE, DEVICE_FLASH_TOTAL, DEVICE_ID, DEVICE_MANUFACTURER, DEVICE_MDS_COVERAGE, DEVICE_MODEL, DEVICE_OS, DEVICE_OUT_OF_COVERAGE, DEVICE_PERCENT_BATTERY, DEVICE_PHONE, DEVICE_RAM_FREE, DEVICE_RAM_TOTAL, DEVICE_TIME, GUID, LOGIN_PASSWORD, LOGIN_USER_NAME, ORIENTATION, PACKAGE_NAME, PERSIST_CONTROL_TYPE, PERSIST_LOGGER_TYPE_SUFFIX, PERSIST_USER_TYPE, PK_ID_SUFFIX, SERVER_NAME, SERVER_URL, SUBMIT_CONTROL_TYPE, SUBMIT_MBO_ATTRIBUTE_TYPE, SUBMIT_MBO_TYPE, SUBMIT_NULL_TYPE, SUBMIT_PERSONALIZATIONKEY_TYPE, SUBMIT_USER_TYPE, SUBMIT_VARIABLE_TYPE, TABLE_CONTEXT_MBO_REFERENCE_ID_KEY, TABLE_CONTEXT_MBO_ROW_REFERENCE_KEY, VARIABLE_TYPE_PERSONALIZED, VARIABLE_TYPE_SYSTEM, VARIABLE_TYPE_TABLE, VARIABLE_TYPE_USER
 
Constructor Summary
SyncPublicationAction(java.util.Hashtable pkgPubList)
          Constructor to create a sync publication action
SyncPublicationAction(java.util.Hashtable pkgPubList, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, boolean isModalScreen)
          Constructor to create a sync publication action
SyncPublicationAction(java.util.Hashtable pkgPubList, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen)
          Constructor to create a sync publication action
 
Method Summary
 void run()
          (non-Javadoc)
 void setScreen(IBOBScreen screen)
          Sets the screen that displays this sync action progress
 void syncDone(java.lang.Exception exception)
          This is called when sync is completed
 
Methods inherited from class com.sybase.uep.bobclient.actions.Action
finish, hasFailed, isProcessing, setHasFailed, setIsProcessing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncPublicationAction

public SyncPublicationAction(java.util.Hashtable pkgPubList)
Constructor to create a sync publication action

Parameters:
pkgPubList - Hashtable object of publications to sync, the keys in the hash table is the package names

SyncPublicationAction

public SyncPublicationAction(java.util.Hashtable pkgPubList,
                             boolean displayCompleteMsg,
                             java.lang.String refreshCompleteMsg,
                             IBOBScreen screen,
                             boolean isModalScreen)
Constructor to create a sync publication action

Parameters:
pkgPubList - Hashtable object of publications to sync, the keys in the hash table is the package names
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the refresh complete message
screen - IBOBScreen object to go to after sycning
isModalScreen - true if sync screen is a modal screen, otherwise false
See Also:
IBOBScreen

SyncPublicationAction

public SyncPublicationAction(java.util.Hashtable pkgPubList,
                             boolean displayCompleteMsg,
                             int refreshCompleteMsgRID,
                             IBOBScreen screen,
                             boolean isModalScreen)
Constructor to create a sync publication action

Parameters:
pkgPubList - Hashtable object of publications to sync, the keys in the hash table is the package names
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the refresh complete message
screen - IBOBScreen object to go to after sycning
isModalScreen - true if sync screen is a modal screen, otherwise false
See Also:
IBOBScreen
Method Detail

run

public void run()
(non-Javadoc)

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

syncDone

public void syncDone(java.lang.Exception exception)
This is called when sync is completed

Parameters:
exception - Exception object

setScreen

public void setScreen(IBOBScreen screen)
Sets the screen that displays this sync action progress

Parameters:
screen - IBOBScreen object
See Also:
IBOBScreen