com.kony.sync.services.syncruntime.config
Class SyncScope

java.lang.Object
  extended by com.kony.sync.services.syncruntime.config.SyncScope
All Implemented Interfaces:
java.io.Serializable

public class SyncScope
extends java.lang.Object
implements java.io.Serializable

This class describes the meta information of the sync scope as defined in the sync configuration

See Also:
Serialized Form

Field Summary
 Enums.ChangeTracking changeTracking
           
 SyncConfiguration originalConfig
           
 com.kony.sync.syncconfig.SyncScope originalSyncScope
           
 boolean supportsLastUpdateTimeStamp
           
 boolean supportsSoftDelete
           
 boolean supportsUserid
           
 java.lang.String SyncDataProviderName
           
 
Constructor Summary
SyncScope()
           
 
Method Summary
 SyncScope clone()
           
 void compile()
           
 void compileFilters()
          Propagate filters to related entities.
 InterceptorType getConflictInterceptor()
          Returns the conflict interceptor
 Enums.ConflictResolutionPolicy getConflictPolicy()
           
 java.lang.String getDatasourceName()
           
 java.util.List<SyncObject> getEntities()
           
 java.util.Map<java.lang.String,SyncObject> getEntityMap()
           
 SyncConfiguration getOriginalConfig()
           
 java.lang.String getScopeName()
           
 Enums.SyncStrategy getStrategy()
          Returns the sync strategy
 java.lang.String getTimeformat()
          Returns the time format defined in the sync configuration
 void setConflictInterceptor(InterceptorType conflictInterceptor)
          Set the conflict interceptor implementation class in to the sync scope
 void setConflictPolicy(Enums.ConflictResolutionPolicy conflictPolicy)
           
 void setDatasourceName(java.lang.String datasourceName)
           
 void setEntities(java.util.List<SyncObject> entities)
           
 void setEntityMap(java.util.Map<java.lang.String,SyncObject> entityMap)
           
 void setOriginalConfig(SyncConfiguration originalConfig)
           
 void setScopeName(java.lang.String scopeName)
           
 void setStrategy(Enums.SyncStrategy strategy)
          Set the sync strategy to the sync scope
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeTracking

public Enums.ChangeTracking changeTracking

originalConfig

public transient SyncConfiguration originalConfig

originalSyncScope

public transient com.kony.sync.syncconfig.SyncScope originalSyncScope

SyncDataProviderName

public java.lang.String SyncDataProviderName

supportsSoftDelete

public boolean supportsSoftDelete

supportsUserid

public boolean supportsUserid

supportsLastUpdateTimeStamp

public boolean supportsLastUpdateTimeStamp
Constructor Detail

SyncScope

public SyncScope()
Method Detail

getTimeformat

public java.lang.String getTimeformat()
Returns the time format defined in the sync configuration

Returns:

clone

public SyncScope clone()
Overrides:
clone in class java.lang.Object

compileFilters

public void compileFilters()
                    throws java.lang.Exception
Propagate filters to related entities. Only meant for serverTypes

Throws:
java.lang.Exception

compile

public void compile()

setStrategy

public void setStrategy(Enums.SyncStrategy strategy)
Set the sync strategy to the sync scope

Parameters:
strategy - Sync strategy enumeration value

getStrategy

public Enums.SyncStrategy getStrategy()
Returns the sync strategy

Returns:

setEntities

public void setEntities(java.util.List<SyncObject> entities)

getEntities

public java.util.List<SyncObject> getEntities()

setConflictPolicy

public void setConflictPolicy(Enums.ConflictResolutionPolicy conflictPolicy)

getConflictPolicy

public Enums.ConflictResolutionPolicy getConflictPolicy()

setEntityMap

public void setEntityMap(java.util.Map<java.lang.String,SyncObject> entityMap)

getEntityMap

public java.util.Map<java.lang.String,SyncObject> getEntityMap()

setScopeName

public void setScopeName(java.lang.String scopeName)

getScopeName

public java.lang.String getScopeName()

setConflictInterceptor

public void setConflictInterceptor(InterceptorType conflictInterceptor)
Set the conflict interceptor implementation class in to the sync scope

Parameters:
conflictInterceptor -

getConflictInterceptor

public InterceptorType getConflictInterceptor()
Returns the conflict interceptor

Returns:

getOriginalConfig

public SyncConfiguration getOriginalConfig()

setOriginalConfig

public void setOriginalConfig(SyncConfiguration originalConfig)

getDatasourceName

public java.lang.String getDatasourceName()
Returns:
the datasourceName

setDatasourceName

public void setDatasourceName(java.lang.String datasourceName)
Parameters:
datasourceName - the datasourceName to set