com.sybase.uep.bobclient.listener
Class PushController

java.lang.Object
  extended by com.sybase.uep.bobclient.listener.PushController

public class PushController
extends java.lang.Object

This is the Push Controller. This will manage all the push requests It will perform the push sync action.

Author:
tdang

Constructor Summary
PushController()
          Constructor
 
Method Summary
 void acknowledgeNotification(java.lang.String reqID)
          Sends an acknowledgement back to the Push Listener that we have processed a notification
 boolean getIsInBackgroundSync()
          Returns if the controller is in background.
 void parsePushRequest(java.lang.String pushRequestStr)
          Parses the push request string
 void pushSyncApplication(java.lang.String reqID, java.lang.String packageName, java.lang.String syncGroup)
          Push sync the given sync group under the given package.
 void setIsInBackgroundSync(boolean isInBGSync)
          Sets if the controller is in background
 void syncApplicationsInBackgroundMode(java.lang.String reqID, java.lang.String packageName, java.util.Vector syncList)
          Background sync the given sync group list under the given package.
 void syncApplicationsInBackgroundMode(java.lang.String packageName, java.util.Vector syncList)
          Background sync the given sync group list under the given package.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushController

public PushController()
Constructor

Method Detail

acknowledgeNotification

public void acknowledgeNotification(java.lang.String reqID)
Sends an acknowledgement back to the Push Listener that we have processed a notification


parsePushRequest

public void parsePushRequest(java.lang.String pushRequestStr)
Parses the push request string

Parameters:
pushRequestStr - the push request string

pushSyncApplication

public void pushSyncApplication(java.lang.String reqID,
                                java.lang.String packageName,
                                java.lang.String syncGroup)
Push sync the given sync group under the given package.

Parameters:
reqID - request id
packageName - package name
syncGroup - sync group name

syncApplicationsInBackgroundMode

public void syncApplicationsInBackgroundMode(java.lang.String packageName,
                                             java.util.Vector syncList)
Background sync the given sync group list under the given package.

Parameters:
packageName - the package name
syncList - the sync group list

syncApplicationsInBackgroundMode

public void syncApplicationsInBackgroundMode(java.lang.String reqID,
                                             java.lang.String packageName,
                                             java.util.Vector syncList)
Background sync the given sync group list under the given package.

Parameters:
packageName - the package name
syncList - the sync group list
reqID - the request id

setIsInBackgroundSync

public void setIsInBackgroundSync(boolean isInBGSync)
Sets if the controller is in background

Parameters:
isInBGSync -

getIsInBackgroundSync

public boolean getIsInBackgroundSync()
Returns if the controller is in background.

Returns:
true if the controller is in background and false otherwise.