Interface ReconciliationService
- All Known Implementing Classes:
ReconciliationServiceImpl
public interface ReconciliationService
The service class for detecting and resolving discrepancies between an upstream and downstream structures.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptiondetectAndResolve(ReconciliationContext context) This will detect all the configured discrepancies in the xconf and try to resolve all the found discrepancies Internally this will call thedetectAndResolve(ReconciliationContext, Collection)for all the configured types
Supported API: true
detectAndResolve(ReconciliationContext context, Collection<DiscrepancyType> types) The main method to do the detect and resolve.detectAndVerify(ReconciliationContext context) This will detect all the configured discrepancies in the xconf.detectAndVerify(ReconciliationContext context, Collection<DiscrepancyType> types) This will detect and verify all the input discrepancies types
Supported API: true
Variation ofgenerateDownstream(Associative, NavigationCriteria, NavigationCriteria, boolean)where this takes a properly build reconciliation context directly.generateDownstream(ReconciliationContext rc, Collection<AddUsageDiscrepancy> addDiscrepancies) Variation ofgenerateDownstream(ReconciliationContext)where this takes a properly build reconciliation context and List of AddUsageDiscrepancies.generateDownstream(Associative root, NavigationCriteria upnc, NavigationCriteria downnc, boolean doAutoCheckin) API to allow you to start the downstream generation from a given root node.generateDownstreamFromTemplate(ReconciliationContext rc, Collection<AddUsageDiscrepancy> addDiscrepancies) Variation ofgenerateDownstream(ReconciliationContext, Collection<AddUsageDiscrepancy>)where this takes a reconciliation context and List of AddUsageDiscrepancies.getDiscrepanciesFromJSON(ReconciliationContext context, String discrepancyJSONArray) Returns a collection of discrepancies by calling respective delegates for each discrepancy JSON.getJSONFromDiscrepancies(ReconciliationContext context, Collection<Discrepancy2> discrepancies) Returns a JSON array of discrepancies by calling respective delegates for each discrepancy
Supported API: true
<T extends Discrepancy2>
ReconciliationReportverifyAndResolve(ReconciliationContext context, Collection<T> discrepancies) The main method to resolve a collection of discrepancies.
-
Method Details
-
generateDownstream
Variation ofgenerateDownstream(Associative, NavigationCriteria, NavigationCriteria, boolean)where this takes a properly build reconciliation context directly. Allows caller to put extra data needed for downstream generation and use those in custom resolvers etc.
Supported API: true
- Returns:
- Throws:
WTException
-
generateDownstream
ReconciliationReport generateDownstream(ReconciliationContext rc, Collection<AddUsageDiscrepancy> addDiscrepancies) throws WTException Variation ofgenerateDownstream(ReconciliationContext)where this takes a properly build reconciliation context and List of AddUsageDiscrepancies. Provides ability to peform Generate Downstream Structure with rules and template configuration. TODO: DOcument me
Supported API: true
- Returns:
- Throws:
WTException
-
detectAndVerify
This will detect all the configured discrepancies in the xconf.
Supported API: true
- Parameters:
context- - the context with minimum the changeContext and changeItems- Returns:
- Throws:
WTException
-
detectAndVerify
ReconciliationReport detectAndVerify(ReconciliationContext context, Collection<DiscrepancyType> types) throws WTException This will detect and verify all the input discrepancies types
Supported API: true
- Parameters:
context- - the context with minimum the changeContext and changeItems- Returns:
- Throws:
WTException
-
verifyAndResolve
<T extends Discrepancy2> ReconciliationReport verifyAndResolve(ReconciliationContext context, Collection<T> discrepancies) throws WTException The main method to resolve a collection of discrepancies.
Supported API: true
- Parameters:
context-discrepancies-- Returns:
- Throws:
WTException
-
detectAndResolve
This will detect all the configured discrepancies in the xconf and try to resolve all the found discrepancies Internally this will call thedetectAndResolve(ReconciliationContext, Collection)for all the configured types
Supported API: true
- Parameters:
context- - the context with minimum the changeContext and changeItems- Returns:
- Throws:
WTException
-
detectAndResolve
ReconciliationReport detectAndResolve(ReconciliationContext context, Collection<DiscrepancyType> types) throws WTException The main method to do the detect and resolve. This internally first calls thedetectAndVerify(ReconciliationContext, Collection)and thenverifyAndResolve(ReconciliationContext, Collection)
Supported API: true
- Parameters:
context-types-- Returns:
- Throws:
WTException
-
getDiscrepanciesFromJSON
Collection<Discrepancy2> getDiscrepanciesFromJSON(ReconciliationContext context, String discrepancyJSONArray) throws WTException Returns a collection of discrepancies by calling respective delegates for each discrepancy JSON. Expects input as JSONArray string.
Supported API: true
- Parameters:
context- - the context having information for navigation criteria and other common datadiscrepancyJSONArray- - the toString ofJSONArray- Returns:
- - collection of discrepancies having one entry for each discrepancy unless no delegate is found for some discrepancy. no order guarantee is provided.
- Throws:
WTException
-
getJSONFromDiscrepancies
String getJSONFromDiscrepancies(ReconciliationContext context, Collection<Discrepancy2> discrepancies) throws WTException Returns a JSON array of discrepancies by calling respective delegates for each discrepancy
Supported API: true
- Parameters:
context- - the context having information for navigation criteria and other common datadiscrepancies- - the discrepancies which needs to be converted to JSON. each discrepancy will have one entry in the JSONArray string which is output. No order guarantee is provided but if input is List then it should be ideally in the same order.- Returns:
- - toString of
JSONArray - Throws:
WTException
-
generateDownstreamFromTemplate
ReconciliationReport generateDownstreamFromTemplate(ReconciliationContext rc, Collection<AddUsageDiscrepancy> addDiscrepancies) throws WTException Variation ofgenerateDownstream(ReconciliationContext, Collection<AddUsageDiscrepancy>)where this takes a reconciliation context and List of AddUsageDiscrepancies. Provides ability to perform Generate Downstream Structure with rules and template configuration. This method process reconciliation context for each discrepancy to populate change items and downstream navigation criteria.
Supported API: true
- Returns:
- Throws:
WTException