F1 (Java) Story 17 Service and basic data access layer for getting WIP resources
Description
See #72 (closed) for understanding API that requires the service
Also see the ADR "#108 Core Services Integration - Search Service Support"
Implement the Service
- It takes the CP ID as a parameter
- It gets the CP record and finds its
data.Namespace
- It requests OSDU Search service API and queries the CP namespace for all indexed record IDs in all available kinds (one-by-one)
- It composes a solid list of all find record IDs
- It returns the list to the caller
Acceptance criteria
- The service created and capable to consume the OSADU Search service for getting ALL kinds data from a given namespace
Testing scenarios
- all necessary unit tests
- integration tests with existing and absent CP ID
Technical notes
The current version of the OSDU Search service is not capable of running queries in a custom namespace context. So, the service can be fed with the mock data. And put TODO for improving it in the future.
Again, see the ADR "#108 Core Services Integration - Search Service Support"