Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • O OS Core Common
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 29
    • Issues 29
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe Software
  • Platform
  • System
  • Lib
  • core
  • OS Core Common
  • Issues
  • #13

Closed
Open
Created Oct 09, 2020 by Hong Yan@hyan6Reporter

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 
Edited Oct 09, 2020 by Hong Yan
Assignee
Assign to
Time tracking