Class PrincipalReferenceConflictResolver
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.PrincipalReferenceConflictResolver
- All Implemented Interfaces:
IXConflictResolverIfc
The principal reference conflict 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
- SKIP_ATTRIBUTE_IMPORT - Skip setting the attribute on the object
- CLEAR_ATTRIBUTE - Clear the attribute on the object (set to null)
- SET_CURRENT_USER - Set the attribute to the current session user
- CREATE_REPLICATED_USER - Create a replicated user and set the attribute to the created user
- CHANGE_OBJECT_ATTRIBUTE - Set the attribute to the principal identified in the import file
Supported API: true
Extendable: true
- See Also:
-
ExpImpForWTPrincipalReferenceAttr
-
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
skipObjectImportResolution
-
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:
-