Interface IInfobaseUpdateConflictResolver.IConflictResolveAssist
-
- Enclosing interface:
- IInfobaseUpdateConflictResolver
public static interface IInfobaseUpdateConflictResolver.IConflictResolveAssist
Conflict resolve assist to allow conflict resolver to operate with infobase configuration changes. Assist is passed to theIInfobaseUpdateConflictResolver
to support with 1C:Enterprise interaction operations.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Path
createTempDirectory(String prefix)
Creates the new temp directory to use for infobase operations.void
dumpInfobaseChanges(Path destination)
Dumps infobases changes as platform XML files to the provided destination folder.void
dumpInfobaseObjects(Set<String> platformQualifiedNames, Path destination)
Dumps the specified infobase objects as platform XML files to the provided destination folder.void
loadProjectConfiguration(Configuration configuration)
Loads the entire project configuration to the infobase.void
loadProjectObjects(Set<org.eclipse.emf.ecore.EObject> projectObjects)
Loads the provided project model objects to the infobase.CompletableFuture<Boolean>
mergeInfobaseChanges(org.eclipse.core.resources.IProject project, Set<String> projectChanges, Path infobaseChangesLocation, Set<String> infobaseChanges, boolean fullLoadRequested)
Merges the provided project changes with infobase changes.void
storeConfigDumpInfo(Path location)
Stores infobase configuration dump info.
-
-
-
Method Detail
-
dumpInfobaseChanges
void dumpInfobaseChanges(Path destination) throws InfobaseSynchronizationException
Dumps infobases changes as platform XML files to the provided destination folder.- Parameters:
destination
- the destination folder, cannot benull
- Throws:
InfobaseSynchronizationException
- if request failed
-
dumpInfobaseObjects
void dumpInfobaseObjects(Set<String> platformQualifiedNames, Path destination) throws InfobaseSynchronizationException
Dumps the specified infobase objects as platform XML files to the provided destination folder. Client may specify objects to dump with a set of 1C:Enterprise platform qualified names.- Parameters:
platformQualifiedNames
- a set of 1C:Enterprise platform qualified names, cannot benull
destination
- the destination folder, cannot benull
- Throws:
InfobaseSynchronizationException
- if request failed
-
loadProjectObjects
void loadProjectObjects(Set<org.eclipse.emf.ecore.EObject> projectObjects) throws InfobaseSynchronizationException
Loads the provided project model objects to the infobase.- Parameters:
projectObjects
- a set of project model object to load, cannot benull
- Throws:
InfobaseSynchronizationException
- if request failed
-
loadProjectConfiguration
void loadProjectConfiguration(Configuration configuration) throws InfobaseSynchronizationException
Loads the entire project configuration to the infobase.- Parameters:
configuration
- the project configuration to load, cannot benull
- Throws:
InfobaseSynchronizationException
- if request failed
-
storeConfigDumpInfo
void storeConfigDumpInfo(Path location) throws InfobaseSynchronizationException
Stores infobase configuration dump info.- Parameters:
location
- the location with platform XML files to store dump info, cannot benull
- Throws:
InfobaseSynchronizationException
- if request failed
-
mergeInfobaseChanges
CompletableFuture<Boolean> mergeInfobaseChanges(org.eclipse.core.resources.IProject project, Set<String> projectChanges, Path infobaseChangesLocation, Set<String> infobaseChanges, boolean fullLoadRequested) throws InfobaseSynchronizationException
Merges the provided project changes with infobase changes. Returns merge result.- Parameters:
project
- the merging project, cannot benull
projectChanges
- a set of project model object changes as symbolic links to merge, cannot benull
infobaseChangesLocation
- a directory with infobase changes as EDT resources to merge, cannot benull
infobaseChanges
- a set of infobase changes as symbolic links to merge, cannot benull
fullLoadRequested
- whether the full dump and full reload was requested by the 1C:Enteprise (for example due to incompatible metadata objects remove or rename)- Returns:
- a merge result,
true
if merge was successfully fished,false
if merge was aborted - Throws:
InfobaseSynchronizationException
- if merge failed
-
createTempDirectory
Path createTempDirectory(String prefix) throws InfobaseSynchronizationException
Creates the new temp directory to use for infobase operations.- Parameters:
prefix
- the prefix of the temp directory, cannot benull
- Returns:
- the new temp directory to use for infobase operations, never
null
- Throws:
InfobaseSynchronizationException
- if request failed
-
-