Class MemberConflictResolver
java.lang.Object
wt.ixb.conflictFramework.conflictResolution.resolver.IXAbstractConflictResolver
wt.ixb.conflictFramework.conflictResolution.resolver.IXGenericConflictResolver
wt.ixb.conflictFramework.conflictResolution.resolver.IXDefaultConflictResolver
wt.ixb.conflictFramework.conflictResolution.resolver.IXMultiObjectConflictResolver
wt.ixb.conflictFramework.conflictResolution.resolver.MemberConflictResolver
- All Implemented Interfaces:
IXConflictResolverIfc
The MemberConflictResolver resolver which handles all the conflicts related to a principal reference attribute. The default
resolution and available resolutions for all conflict types is SKIP_OBJECT_IMPORT, unless overridden by the caller of
checkConflictsForAttributesBatch method of ExpImpForWTPrincipalReferenceAttr.
Supported API: true
Extendable: true
- Default resolution:
- SKIP_OBJECT_IMPORT (unless set by caller in the Importer.generalContext)
- Available resolution:
- SKIP_OBJECT_IMPORT or whatever was set in the Importer.generalContext. Other resolution supported by this resolver include:
- SKIP_OBJECT_IMPORT - Skip the import of the entire object
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXAbstractConflictResolver
AVAILABLE_RESOLUTION, DEFAULT_RESOLUTION, RESOURCE, typeToOrderMap -
Method Summary
Modifier and TypeMethodDescriptiongetAllResolutions(Importer importer) Returns all the available resolutions for a conflict type.getDefaultResolution(Importer importer) Returns the default resolution based on the conflict type.resolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) Tries to resolve the conflict using the provided resolution type.Methods inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXGenericConflictResolver
skipObjectImportResolutionMethods inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXAbstractConflictResolver
getAllResolutions, getDefaultResolution, isOfOrder, resolve, toString
-
Method Details
-
getDefaultResolution
Returns the default resolution based on the conflict type.
Supported API: true- Specified by:
getDefaultResolutionin interfaceIXConflictResolverIfc- Overrides:
getDefaultResolutionin classIXAbstractConflictResolver- Parameters:
importer- The context.- Returns:
- The resolution type.
- Throws:
WTException
-
getAllResolutions
Returns all the available resolutions for a conflict type.
Supported API: true- Specified by:
getAllResolutionsin interfaceIXConflictResolverIfc- Overrides:
getAllResolutionsin classIXAbstractConflictResolver- Parameters:
importer- The context.- Returns:
- Collection of resolution which the resolver can handle.
- Throws:
WTException
-
resolve
public Object resolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) throws WTException Tries to resolve the conflict using the provided resolution type.
Supported API: true- Specified by:
resolvein interfaceIXConflictResolverIfc- Overrides:
resolvein classIXDefaultConflictResolver- Parameters:
resolutionType- The resolution type.fileXML- The IxbElement.importer- The context.arguments- Object[], arguments for resolver. The first element is a Map that contains a principalReferenceXML IxbElement.- Returns:
- Object, Any object if required to be returned or else a Boolean for success or failure.
- Throws:
WTException- See Also:
-