Add client factory and service lib for search and storage
Related MR:!27 (merged)
Hi,
We want to add client libraries for storage and search service in os-core-common
so that we can easily form http request and process response in a reusable way.
Currently we already have the client libraries for entitlements service and legal service. Their implement are
org.opengroup.osdu.core.common.entitlements.EntitlementsAPIConfig
org.opengroup.osdu.core.common.entitlements.EntitlementsFactory
org.opengroup.osdu.core.common.entitlements.EntitlementsService
org.opengroup.osdu.core.common.legal.LegalAPIConfig
org.opengroup.osdu.core.common.legal.LegalFactory
org.opengroup.osdu.core.common.legal.LegalService
With these factory and service class, we can easily send legal request for any entitlement and legal APIs and pack the response into the specific data model for further usage. For example, Entitlement and Legal service integration tests use these client class to test their APIs. Storage service org.opengroup.osdu.storage.service.EntitlementsAndCacheServiceImpl
use EntitlementsService
to get groups data from Entitlements service.
Here in this issue, with a similar idea, we want to add client libraries for Search service and Storage service as well. The implementation structures and their usage are exactly the same as Entitlements and Legal client as I mentioned above. It will help us simplify the development of integration tests or other services which consume search or legal service.
It includes following classes
org.opengroup.osdu.core.common.search.ISearchFactory
org.opengroup.osdu.core.common.search.ISearchService
org.opengroup.osdu.core.common.search.SearchAPIConfig
org.opengroup.osdu.core.common.search.SearchFactory
org.opengroup.osdu.core.common.search.SearchService
org.opengroup.osdu.core.common.model.search.SearchException
org.opengroup.osdu.core.common.storage.IStorageFactory
org.opengroup.osdu.core.common.storage.IStorageService
org.opengroup.osdu.core.common.storage.StorageAPIConfig
org.opengroup.osdu.core.common.storage.StorageFactory
org.opengroup.osdu.core.common.storage.StorageService
org.opengroup.osdu.core.common.model.storage.StorageException
org.opengroup.osdu.core.common.model.storage.UpsertRecords