Interface IPersistableSynchronizationStrategy
-
- All Superinterfaces:
ISynchronizationStrategy
public interface IPersistableSynchronizationStrategy extends ISynchronizationStrategy
Synchronization strategy
between project and connected infobases, that can be persisted and restored between EDT IDE sessions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com._1c.g5.v8.dt.internal.platform.services.core.infobases.sync.ISynchronizationDataStore
getStore(InfobaseReference infobase)
Returns the synchronization data store used by this synchronization strategy.void
initFromStore(org.eclipse.core.resources.IProject project, InfobaseReference infobase, IInfobaseConnection connection, com._1c.g5.v8.dt.internal.platform.services.core.infobases.sync.ISynchronizationDataStore store)
Initializes this synchronization strategy with the provided synchronization data store.-
Methods inherited from interface com._1c.g5.v8.dt.platform.services.core.infobases.sync.strategies.ISynchronizationStrategy
fullReloadRequested, getChangedObjects, getConnection, getConnections, getEqualityState, getSynchronizationState, infobaseConnected, infobaseDatabaseUpdateRequested, infobaseDisconnected, infobasePullChangesRequested, infobaseSynchronizationStateChangeRequested, isConnected, objectsChanged, objectsDeleted
-
-
-
-
Method Detail
-
getStore
com._1c.g5.v8.dt.internal.platform.services.core.infobases.sync.ISynchronizationDataStore getStore(InfobaseReference infobase) throws org.eclipse.core.runtime.CoreException
Returns the synchronization data store used by this synchronization strategy.- Parameters:
infobase
- the infobase to save state for, cannot benull
- Returns:
- the synchronization data store used by this synchronization strategy, never
null
- Throws:
org.eclipse.core.runtime.CoreException
- if unable to construct a memento
-
initFromStore
void initFromStore(org.eclipse.core.resources.IProject project, InfobaseReference infobase, IInfobaseConnection connection, com._1c.g5.v8.dt.internal.platform.services.core.infobases.sync.ISynchronizationDataStore store) throws org.eclipse.core.runtime.CoreException
Initializes this synchronization strategy with the provided synchronization data store. Infobase must be connected with the provided connection and methodinfobaseConnected
must be executed before initialization.- Parameters:
project
- the project to restore state, cannot benull
infobase
- the infobase to restore state for, cannot benull
connection
- the infobase connection to restore state, cannot benull
store
- the synchronization data store to initialize this synchronization strategy, cannot benull
- Throws:
org.eclipse.core.runtime.CoreException
- on failure to initialize strategy from the memento
-
-