Class OrganizationConflictResolver
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.OrganizationConflictResolver
- All Implemented Interfaces:
IXConflictResolverIfc
- Direct Known Subclasses:
OrganizationIDConflictResolver
The organization conflict resolver. It handles all the conflicts related organization.
Supported API: true
Extendable: true
- Default resolution:
- Default resolution as per importer.
- Available resolution:
- Default resolution as per importer.
- Organization of the current context to be used as a owning organization.
- Use a default value as specified through a property.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiongetAllResolutions(Importer importer) Returns all the available resolutions for a conflict type.resolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) Tries to resolve the conflict using the provided resolution.protected ObjectresolveOrgConflictWithCurrentContextOrg(IxbElement fileXML, Importer importer, Object[] arguments) Use organization of the current context to be used as a owning organization..protected ObjectresolveOrgConflictWithDefaultValue(IxbElement fileXML, Importer importer, Object[] arguments) Use a default value as specified through a property.Methods inherited from class wt.ixb.conflictFramework.conflictResolution.resolver.IXGenericConflictResolver
skipObjectImportResolution
-
Method Details
-
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. If the resolution is of type 'CURRENT_CONTEXT_ORG' or 'DEFAULT_VALUE_ORG', 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:
-
resolveOrgConflictWithCurrentContextOrg
protected Object resolveOrgConflictWithCurrentContextOrg(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException Use organization of the current context to be used as a owning organization..
Supported API: true- Parameters:
fileXML- The IxbElement.importer- Importer context.arguments- Object[], arguments for resolver.- Returns:
- TRUE if resolved successfully, else FALSE.
- Throws:
WTException
-
resolveOrgConflictWithDefaultValue
protected Object resolveOrgConflictWithDefaultValue(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
-