Skip to content

Couchbase DB Project Plan

rajnikantsh edited this page Oct 27, 2017 · 3 revisions

Welcome to the oxCore wiki!

  1. Introduce 2 new library in oxcore a. oxCouchbase – This library will work parallel to oxLdap b. oxFilter – This library will work top of oxCouchbase and oxLdap

(Later we can add more libraries like oxSql parallel to oxCouchbase, oxLdap and oxFilter will work on top of these library and provide methods for oxAuth, oxTrust etc)

  1. oxCouchbase will use ox-couchbase.json for its configurations
  2. oxFilter will check externalized setting of database to use. And then initiate the support for selected persistence provider that is LDAP or Couchbase.
  3. To implement support for given options to use different persistence backend during installation need to extract common set of operational methods into interface. This interface should also extend javax.persistence.EntityManager interface.
  4. Initialize the required persistence provider implementation using CDI Producer class PersistenceProviderFactory.
  5. Need to implement that interface for both LDAP and Couchbase.
  6. In the oxauth library we will get instance of desired Persistence Provider from oxfilter
  7. Replace the existing oxcore-ldap in oxAuth/oxTrust etc. with oxFilter Library and remove UnboundedId SDK from oxLdap.

Below Diagram Shows Implementation for Couchbase.

Diagram

Clone this wiki locally