-
Story
-
Resolution: Done
-
Medium
-
None
Overview :
Fetch CM Handles by collection of xpaths using temp table in NCMP/RI-Module
- Create a plural version of "org.onap.cps.api.CpsDataService#getDataNode" with
- Collection of xpaths
- fetchDescendantsOption? TBD (Check if it can be easily added, we can hard code to include all the descendents or make it optional)
- It should use new algorithm / method in the persistence service (using a temp table)
- Extend fragment repository with the custom extension that makes use of java and (native) sql like "org.onap.cps.spi.repository.FragmentRepositoryCpsPathQueryImpl#findByAnchorAndCpsPath"
- The extension would create a temp table from the list of xpaths.
- Create a version of query below using all xpaths in the temp table instead of single xpath: org.onap.cps.spi.repository.FragmentRepository#findByAnchorIdAndParentXpath
- Use and refactor methods to return collection of data nodes (new) as well as a version for a single DataNode (existing).
A/C :
- Review only as it should use only one query with collection of xpaths
Open Questions :
1. Java / REST Interface ? Java interface as it's internal use only
Out of Scope :
- No Demo
- No NCMP update (done in separate Jira)