Class ObjectAlreadyExistsConflictResolver
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.IXSingleObjectConflictResolver
wt.ixb.conflictFramework.conflictResolution.resolver.ObjectAlreadyExistsConflictResolver
- All Implemented Interfaces:
IXConflictResolverIfc
The object already exist conflict resolver. It handles all the conflicts which may occur while importing an object which already exists in the system.
Supported API: true
Extendable: true
- Default resolution:
- Default resolution as per importer.
- Available resolution:
- Default resolution as per importer.
- Only import Object metadata.
- Only import Object content.
- Import Object metadata and content.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectimportOnlyContentResolution(IxbElement fileXML, Importer importer, Object[] arguments) Only import Object content.protected ObjectimportOnlyMetadataResolution(IxbElement fileXML, Importer importer, Object[] arguments) Only import Object metadata.resolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) Tries to resolve the conflict using the provided resolution.Methods inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXGenericConflictResolver
skipObjectImportResolution
-
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 'IMPORT_ONLY_METADATA' or 'IMPORT_ONLY_CONTENT' or 'IMPORT_METADTA_AND_CONTENT', resolves it else, delegates the task to the super class.
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.- Returns:
- Object, Any object if required to be returned or else a Boolean for success or failure.
- Throws:
WTException- See Also:
-
importOnlyMetadataResolution
protected Object importOnlyMetadataResolution(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException Only import Object metadata.
Supported API: true- Parameters:
fileXML- The IxbElement.importer- Importer context.arguments- Object[], arguments for resolver.- Returns:
- TRUE if resolved successfully, else FALSE.
- Throws:
WTException
-
importOnlyContentResolution
protected Object importOnlyContentResolution(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException Only import Object content.
Supported API: true- Parameters:
fileXML- The IxbElement.importer- Importer context.arguments- Object[], arguments for resolver.- Returns:
- TRUE if resolved successfully, else FALSE.
- Throws:
WTException
-