Class LifecycleConflictResolver
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.LifecycleConflictResolver
- All Implemented Interfaces:
IXConflictResolverIfc
The life-cycle template and state conflict resolver. It handles all the conflicts related to a life-cycle template and state.
Supported API: true
Extendable: true
- 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 lifecycle and lifecycle state.
- Carry forward values from previous iteration on the same version.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXAbstractConflictResolver
AVAILABLE_RESOLUTION, DEFAULT_RESOLUTION, RESOURCE, typeToOrderMap -
Method Summary
Modifier and TypeMethodDescriptionresolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) Tries to resolve the conflict using the provided resolution.protected ObjectresolveLCConflictWithDefaultValue(IxbElement fileXML, Importer importer, Object[] arguments) Use a default value as specified through a property.protected ObjectresolveLCConflictWithOIR(IxbElement fileXML, Importer importer, Object[] arguments) Use the OIR and let the system choose an appropriate lifecycle and lifecycle state.protected ObjectresolveLCConflictWithPreviousIteration(IxbElement fileXML, Importer importer, Object[] arguments) Carry forward values from previous iteration on the same version.protected ObjectresolveLCConflictWithPreviousIterationOrOIR(IxbElement fileXML, Importer importer, Object[] arguments) Carry forward values from previous iteration on the same version, if previous version does not exist then take values from OIR
Supported API: trueMethods inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXGenericConflictResolver
skipObjectImportResolutionMethods inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXAbstractConflictResolver
getAllResolutions, getDefaultResolution, getDefaultResolution, isOfOrder, resolve, toString
-
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_LC' or 'OIR_LC' or 'FROM_PREVIOUS_ITERATION_LC' or FROM_PREVIOUS_ITERATION_OR_OIR_LC, 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:
-
resolveLCConflictWithDefaultValue
protected Object resolveLCConflictWithDefaultValue(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
-
resolveLCConflictWithOIR
protected Object resolveLCConflictWithOIR(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException Use the OIR and let the system choose an appropriate lifecycle and lifecycle state.
Supported API: true- Parameters:
fileXML- The IxbElement.importer- Importer context.arguments- Object[], arguments for resolver.- Returns:
- TRUE if resolved successfully, else FALSE.
- Throws:
WTException
-
resolveLCConflictWithPreviousIteration
protected Object resolveLCConflictWithPreviousIteration(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
-
resolveLCConflictWithPreviousIterationOrOIR
protected Object resolveLCConflictWithPreviousIterationOrOIR(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException Carry forward values from previous iteration on the same version, if previous version does not exist then take values from OIR
Supported API: true- Parameters:
fileXML- The IxbElement.importer- Importer context.arguments- Object[], arguments for resolver.- Returns:
- TRUE if resolved successfully, else FALSE.
- Throws:
WTException
-