Apache Sling NoSQL MongoDB Resource Provider

Clone this repo:
  1. 158dce1 Updating badges for org-apache-sling-nosql-mongodb-resourceprovider by Radu Cotescu · 10 months ago master
  2. f29e2d9 SLING-7245 - Validate pull requests using Jenkins by Robert Munteanu · 10 months ago
  3. 2675119 trivial: added license header to *.md files by Radu Cotescu · 1 year, 2 months ago
  4. 85c69d6 SLING-7215 - [nice-to-have] Add a CONTRIBUTING file to every module by Radu Cotescu · 1 year, 2 months ago
  5. 15df2be SLING-7216 - [nice-to-have] Add a CODE_OF_CONDUCT file to every module by Radu Cotescu · 1 year, 2 months ago

Build Status Maven Central JavaDocs License nosql

Apache Sling NoSQL MongoDB Resource Provider

This module is part of the Apache Sling project.

Sling ResourceProvider implementation that uses MongoDB NoSQL database as persistence.

Based on the “Apache Sling NoSQL Generic Resource Provider”.

All resource data is stored in one MongoDB database and one collection, using the path of the resource as “_id” property.

Configuration on deployment

  • Create a factory configuration for “Apache Sling NoSQL MongoDB Resource Provider Factory” to define the root of the resource tree that should be stored in MongoDB, and MongoDB connection string, database name and collection name.

Run integration tests

To run the integration tests you have to set up a real MongoDB server and run the tests with this command line (inserting the correct parameters):

mvn -Pmongodb-integration-test -DconnectionString=localhost:27017 -Ddatabase=sling -Dcollection=resources integration-test