Interface IPersistableSynchronizationStrategy

    • 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 be null
        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 method infobaseConnected must be executed before initialization.
        Parameters:
        project - the project to restore state, cannot be null
        infobase - the infobase to restore state for, cannot be null
        connection - the infobase connection to restore state, cannot be null
        store - the synchronization data store to initialize this synchronization strategy, cannot be null
        Throws:
        org.eclipse.core.runtime.CoreException - on failure to initialize strategy from the memento