Interface IInfobaseUpdateConflictResolver


  • public interface IInfobaseUpdateConflictResolver
    Infobase update conflict resolver may be used to resolves conflict between possible project changes and infobase configuration changes.
    See Also:
    IInfobaseUpdateCallback
    • Method Detail

      • resolveConflict

        boolean resolveConflict​(org.eclipse.core.resources.IProject project,
                                InfobaseReference infobase,
                                Set<org.eclipse.emf.ecore.EObject> projectChanges,
                                IInfobaseConfigurationChange infobaseChange,
                                IInfobaseUpdateConflictResolver.IConflictResolveAssist assist,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws InfobaseSynchronizationException
        Resolves a conflict between possible project changes and infobase configuration changes with priority to infobase changes.
        Parameters:
        project - the project to update infobase for, cannot be null
        infobase - the updating infobase, cannot be null
        projectChanges - the project metadata object changes, cannot be null
        infobaseChange - the infobase configuration changes, cannot be null
        assist - the resolve conflict assist to provide to conflict resolver, cannot be null
        monitor - the progress monitor to report progress to, cannot be null
        Returns:
        true whether conflict is resolved or false if resolve was unsuccessful or has been cancelled
        Throws:
        InfobaseSynchronizationException - if a conflict resolve error occurred
      • overrideConflict

        boolean overrideConflict​(org.eclipse.core.resources.IProject project,
                                 InfobaseReference infobase,
                                 Set<org.eclipse.emf.ecore.EObject> projectChanges,
                                 IInfobaseConfigurationChange infobaseChange,
                                 IInfobaseUpdateConflictResolver.IConflictResolveAssist assist,
                                 org.eclipse.core.runtime.IProgressMonitor monitor)
                          throws InfobaseSynchronizationException
        Overrides an infobase changes with EDT project metadata objects state.
        Parameters:
        project - the project to update infobase for, cannot be null
        infobase - the updating infobase, cannot be null
        projectChanges - the project metadata object changes, cannot be null
        infobaseChange - the infobase configuration changes, cannot be null
        assist - the resolve conflict assist to provide to conflict resolver, cannot be null
        monitor - the progress monitor to report progress to, cannot be null
        Returns:
        true whether conflict is overrided or false if override was unsuccessful or has been cancelled
        Throws:
        InfobaseSynchronizationException - if a conflict override error occurred