com.sybase.uep.bobclient.actions
Class SyncAction

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

public class SyncAction
extends Action

This is the sync action class

This will perform the synchronization of the mobile business objects

Author:
tdang
See Also:
Action

Constructor Summary
SyncAction(java.lang.String mobileAppID)
          Constructor to create a sync action
SyncAction(java.lang.String[] mobileAppID)
          Constructor to create a sync action
SyncAction(java.lang.String[] mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen)
          Constructor to create a sync action
SyncAction(java.lang.String[] mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, boolean isModalScreen)
          Constructor to create a sync action
SyncAction(java.lang.String[] mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen)
          Constructor to create a sync action
SyncAction(java.lang.String[] mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, boolean isModalScreen)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, int requiredMessageRID, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, int requiredMessageRID, int tooLongMessageRID, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, int refreshCompleteMsgRID, IBOBScreen screen, java.util.Vector parameters, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, int requiredMessageRID, int tooLongMessageRID, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, java.lang.String requiredMessage, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, boolean isModalScreen, java.util.Vector parameters, java.lang.String requiredMessage, java.lang.String tooLongMessage, boolean saveParams)
          Constructor to create a sync action
SyncAction(java.lang.String mobileAppID, boolean displayCompleteMsg, java.lang.String refreshCompleteMsg, IBOBScreen screen, java.util.Vector parameters, boolean saveParams)
          Constructor to create a sync action
 
Method Summary
 void finish(boolean success)
          This gets called when the action is finished
 IBOBScreen getScreen()
          Retrieves the screen that displays this sync action progress.
 void run()
          (non-Javadoc)
 void setIsModalScreen(boolean bol)
          Set if the sync screen should be a modal screen
 void setScreen(IBOBScreen screen)
          Sets the screen that displays this sync action progress.
 void syncDone(java.lang.Exception exception)
          This is called when synchronization is completed
 
Methods inherited from class com.sybase.uep.bobclient.actions.Action
hasFailed, isProcessing, setHasFailed, setIsProcessing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncAction

public SyncAction(java.lang.String mobileAppID)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID

SyncAction

public SyncAction(java.lang.String[] mobileAppID)
Constructor to create a sync action

Parameters:
mobileAppID - String array list of mobile application IDs

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the refresh complete message
screen - IBOBScreen screen to go to after sycning
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen,
                  java.util.Vector parameters,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
parameters - Vector list of SubmitElement objects for the parameters
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  java.util.Vector parameters,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
parameters - Vector list of SubmitElement objects for the parameters
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String[] mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen)
Constructor to create a sync action

Parameters:
mobileAppID - String array list of mobile application IDs
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String[] mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen)
Constructor to create a sync action

Parameters:
mobileAppID - String array list of mobile application IDs
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen,
                  boolean isModalScreen)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  boolean isModalScreen)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  int requiredMessageRID,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
requiredMessageRID - localization resource ID for the required message that will be alerted to the user. example "Input \"{0}\" is required."
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  java.lang.String requiredMessage,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
requiredMessage - String value required message that will be alerted to the user. example "Input \"{0}\" is required."
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  int requiredMessageRID,
                  int tooLongMessageRID,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
requiredMessageRID - localization resource ID for the required message that will be alerted to the user. example "Input \"{0}\" is required."
tooLongmessageRID - localization resource ID for the message to alert the user when the entered String exceeds the maximum length. example "Input {0} exceeds the maximum length of {1}."
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  int requiredMessageRID,
                  int tooLongMessageRID,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
requiredMessageRID - localization resource ID for the required message that will be alerted to the user. example "Input \"{0}\" is required."
tooLongmessageRID - localization resource ID for the message to alert the user when the entered String exceeds the maximum length. example "Input {0} exceeds the maximum length of {1}."
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  boolean isModalScreen,
                  java.util.Vector parameters,
                  java.lang.String requiredMessage,
                  java.lang.String tooLongMessage,
                  boolean saveParams)
Constructor to create a sync action

Parameters:
mobileAppID - String value of the mobile application ID
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
parameters - Vector list of SubmitElement objects for the parameters
requiredMessage - String value of the required message that will be alerted to the user. example "Input \"{0}\" is required."
tooLongmessage - String value of the message to alert the user when the entered String exceeds the maximum length. example "Input {0} exceeds the maximum length of {1}."
saveParams - true to save the sync parameters for later sync, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String[] mobileAppID,
                  boolean displayCompleteMsg,
                  int refreshCompleteMsgRID,
                  IBOBScreen screen,
                  boolean isModalScreen)
Constructor to create a sync action

Parameters:
mobileAppID - String array list of the mobile application IDs
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsgRID - localization resource ID for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
See Also:
IBOBScreen

SyncAction

public SyncAction(java.lang.String[] mobileAppID,
                  boolean displayCompleteMsg,
                  java.lang.String refreshCompleteMsg,
                  IBOBScreen screen,
                  boolean isModalScreen)
Constructor to create a sync action

Parameters:
mobileAppID - String array list of the mobile application IDs
displayCompleteMsg - true to display the refresh complete message, otherwise false
refreshCompleteMsg - String value for the complete message
screen - IBOBScreen screen to go to after sycning
isModalScreen - true if sync screen is modal screen, otherwise false
See Also:
IBOBScreen
Method Detail

setIsModalScreen

public void setIsModalScreen(boolean bol)
Set if the sync screen should be a modal screen

Parameters:
bol - true if this is modal sync screen, otherwise false

finish

public void finish(boolean success)
This gets called when the action is finished

Specified by:
finish in interface IBOBAction
Overrides:
finish in class Action
Parameters:
success - true to specify if the action succeeded, otherwise false
See Also:
IBOBAction.finish(boolean success)

run

public void run()
(non-Javadoc)

See Also:
Runnable.run()

syncDone

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

Parameters:
exception - Exception object
See Also:
Exception

getScreen

public IBOBScreen getScreen()
Retrieves the screen that displays this sync action progress.

Returns:
IBOBScreen object
See Also:
IBOBScreen

setScreen

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

Parameters:
screen - IBOBScreen object
See Also:
IBOBScreen