com.sybase.uep.bobclient.data
Class RIMSynchronizationGroupList

java.lang.Object
  extended by com.sybase.uep.bobclient.data.RIMPersistableObject
      extended by com.sybase.uep.bobclient.data.RIMSynchronizationGroupList
All Implemented Interfaces:
SynchronizationGroupList, net.rim.device.api.util.Persistable

public class RIMSynchronizationGroupList
extends RIMPersistableObject
implements SynchronizationGroupList, net.rim.device.api.util.Persistable

The RIM Synchronization Group List

Author:
bdeng

Constructor Summary
RIMSynchronizationGroupList()
          Constructor to create Synchronization Group List
 
Method Summary
 boolean addSynchronizationGroup(java.lang.String packageName, java.lang.String syncGroup)
          Add Synchronization Group
 boolean addSynchronizationGroup(SynchronizationGroup synchronizationGroup)
          Add Synchronization Group
 java.lang.String[] getPackageNames()
          Returns all package names.
 java.util.Vector getSyncGroupsByPackageName(java.lang.String packageName)
          Returns all the Synchronization Groups under the given package.
 SynchronizationGroup getSynchronizationGroup(java.lang.String packageName, java.lang.String syncGroupName)
          Returns the Synchronization Group based on the given package name and sync group name.
 void init(java.util.Vector mboMobileApplicationList)
          Initializes the Synchronization Groups based on the given Mobile Application List.
 void setSynchronizationGroup(java.lang.String packageName, java.lang.String syncGroupName, SynchronizationGroup synchronizationGroup)
          Sets the Synchronization Group to the given package name and sync group name.
 
Methods inherited from class com.sybase.uep.bobclient.data.RIMPersistableObject
getBooleanProperty, getProperties, getProperty, getStringProperty, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RIMSynchronizationGroupList

public RIMSynchronizationGroupList()
Constructor to create Synchronization Group List

Method Detail

addSynchronizationGroup

public boolean addSynchronizationGroup(java.lang.String packageName,
                                       java.lang.String syncGroup)
Add Synchronization Group

Specified by:
addSynchronizationGroup in interface SynchronizationGroupList
Parameters:
packageName - - package name
syncGroup - - sync group name
Returns:
true if the Synchronization Group is added successfully and false otherwise.

addSynchronizationGroup

public boolean addSynchronizationGroup(SynchronizationGroup synchronizationGroup)
Add Synchronization Group

Specified by:
addSynchronizationGroup in interface SynchronizationGroupList
Parameters:
mboMobileApplication - - SynchronizationGroup object
Returns:
true if the Synchronization Group is added successfully and false otherwise.

setSynchronizationGroup

public void setSynchronizationGroup(java.lang.String packageName,
                                    java.lang.String syncGroupName,
                                    SynchronizationGroup synchronizationGroup)
Sets the Synchronization Group to the given package name and sync group name.

Specified by:
setSynchronizationGroup in interface SynchronizationGroupList
Parameters:
packageName - the Synchronization Group's package name
syncGroupName - the Synchronization Group's sync group name
synchronizationGroup - the Synchronization Group

getSynchronizationGroup

public SynchronizationGroup getSynchronizationGroup(java.lang.String packageName,
                                                    java.lang.String syncGroupName)
Returns the Synchronization Group based on the given package name and sync group name.

Specified by:
getSynchronizationGroup in interface SynchronizationGroupList
Parameters:
packageName - the Synchronization Group's package name
syncGroupName - the Synchronization Group's sync group name
Returns:
the Synchronization Group based on the given package name and sync group name.

init

public void init(java.util.Vector mboMobileApplicationList)
Initializes the Synchronization Groups based on the given Mobile Application List.

Specified by:
init in interface SynchronizationGroupList
Parameters:
mboMobileApplicationList - Mobile Application List

getSyncGroupsByPackageName

public java.util.Vector getSyncGroupsByPackageName(java.lang.String packageName)
Returns all the Synchronization Groups under the given package.

Specified by:
getSyncGroupsByPackageName in interface SynchronizationGroupList
Parameters:
packageName - the package name
Returns:
all the Synchronization Groups under the given package.

getPackageNames

public java.lang.String[] getPackageNames()
Returns all package names.

Specified by:
getPackageNames in interface SynchronizationGroupList
Returns:
all package names.