Class OrganizationIDConflictResolver
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
wt.ixb.conflictFramework.conflictResolution.resolver.OrganizationIDConflictResolver
- All Implemented Interfaces:
IXConflictResolverIfc
The organizationID conflict resolver. It handles all the conflicts related organizationID.
Supported API: true
Extendable: true
- Default resolution:
- Create New Organization resolution as per importer.
- Available resolution:
- Create New Organization resolution as per importer.
- 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
-
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.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.OrganizationConflictResolver
resolveOrgConflictWithCurrentContextOrg, resolveOrgConflictWithDefaultValueMethods 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
-
getAllResolutions
Returns all the available resolutions for a conflict type.
Supported API: true- Specified by:
getAllResolutionsin interfaceIXConflictResolverIfc- Overrides:
getAllResolutionsin classOrganizationConflictResolver- 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 'CREATE_NEW_ORG', resolves it else, delegates the task to the super class.
Supported API: true- Specified by:
resolvein interfaceIXConflictResolverIfc- Overrides:
resolvein classOrganizationConflictResolver- 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:
-