com.sap.ip.me.api.smartsync
Interface SyncBoOutDeltaFacade


public interface SyncBoOutDeltaFacade

SyncBoDeltaFacade offers methods to applications in accessing the outbound delta data.

Version:
2.1
Author:
SAP

Method Summary
 MeIterator getAllDelta()
          Returns the iterator to the collection of SyncBoOutDelta data.
 void setSendType(SyncBoDescriptor syncBoDescriptor, SyncBoOutDeltaSendType sendType)
          Changes the send type of all outgoing (uploading) SyncBo deltas for a SyncBoDescriptor.
 

Method Detail

getAllDelta

public MeIterator getAllDelta()
                       throws SmartSyncException,
                              PersistenceException
Returns the iterator to the collection of SyncBoOutDelta data.

Returns:
the SyncBoOutDelta collection in MeIterator
Throws:
PersistenceException - is thrown if any error happens in persistence layer
SmartSyncException - is thrown if any error happens in SmartSync layer

setSendType

public void setSendType(SyncBoDescriptor syncBoDescriptor,
                        SyncBoOutDeltaSendType sendType)
Changes the send type of all outgoing (uploading) SyncBo deltas for a SyncBoDescriptor. The default value is always SyncBoOutDeltaSendType.SEND. The send type will be set for all following synchronizations but it will not be persisted. This means it will be resetted each time the framework is restarted. The following example changes all SyncBoDescriptors to direct so that all delta uploads will be send synchronously:
  	final SmartSyncRuntime smartSyncRuntime = SmartSyncRuntime.getInstance();

                final SyncBoDescriptorFacade descriptorFacade = smartSyncRuntime.getSyncBoDescriptorFacade();
                final SyncBoOutDeltaFacade outDeltaFacade = smartSyncRuntime.getSyncBoOutDeltaFacade();

                //Iterate thru all descriptors
                for(final SyncBoDescriptorIterator descriptorIt = descriptorFacade.getAllSyncBoDescriptors(); descriptorIt.hasNext();){
                        final SyncBoDescriptor syncBoDescriptor = descriptorIt.next();
                        outDeltaFacade.setSendType(syncBoDescriptor, SyncBoOutDeltaSendType.SEND_DIRECT);
                }
  

Parameters:
sendType - the new sendType value
Throws:
java.lang.IllegalArgumentException - if SyncBoDescriptor or SyncBoOutDeltaSendType is null.


Copyright © 2005 SAP AG. All Rights Reserved.