Class FolderConflictResolver

All Implemented Interfaces:
IXConflictResolverIfc

public class FolderConflictResolver extends IXMultiObjectConflictResolver
The Folder conflict resolver. It handles all the conflicts related to a folder.
  • Default resolution:
    • Default resolution as per importer.
  • Available resolution:
    • Default resolution as per importer.
    • Use a default value as specified through a property.
    • Use the OIR and let the system choose an appropriate folder.
    • Carry forward values from previous iteration on the same version.


Supported API: true

Extendable: true
  • Method Details

    • resolve

      public Object resolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Tries to resolve the conflict using the provided resolution. If the resolution is of type 'DEFAULT_VALUE_FOLDER' or 'OIR_FOLDER' or 'FROM_PREVIOUS_ITERATION_FOLDER', resolves it else, delegates the task to the super class.

      Supported API: true
      Specified by:
      resolve in interface IXConflictResolverIfc
      Overrides:
      resolve in class IXDefaultConflictResolver
      Parameters:
      resolutionType - The resolution type.
      fileXML - The IxbElement.
      importer - The context.
      arguments - Object[], arguments for resolver.
      Returns:
      Object, Any object if required to be returned or else a Boolean for success or failure.
      Throws:
      WTException
      See Also:
    • resolveFolderConflictWithDefaultValue

      protected Object resolveFolderConflictWithDefaultValue(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Use a default value as specified through a property.

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException
    • resolveFolderConflictWithOIR

      protected Object resolveFolderConflictWithOIR(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Use the OIR and let the system choose an appropriate folder.

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException
    • resolveFolderConflictWithPreviousIteration

      protected Object resolveFolderConflictWithPreviousIteration(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Carry forward values from previous iteration on the same version.

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException