You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2018/11/05 15:15:55 UTC

[sling-whiteboard] branch master updated: README added

This is an automated email from the ASF dual-hosted git repository.

stefanegli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new fef316a  README added
fef316a is described below

commit fef316a603fc3af16182954ad30f7b4a33de53ea
Author: Stefan Egli <st...@apache.org>
AuthorDate: Mon Nov 5 16:15:47 2018 +0100

    README added
---
 README.md | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index 90ccf12..f921cc3 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,25 @@
-[<img src="http://sling.apache.org/res/logos/sling.png"/>](http://sling.apache.org)
 
- [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
+Sling Capabilities - Oak Repository Descriptors
+===============================================
 
-# Apache Sling Whiteboard
+This module is a prototype exposing a select set of Oak Repository Descriptors as [Sling Capabilities](https://github.com/apache/sling-org-apache-sling-capabilities).
 
-This module is part of the [Apache Sling](https://sling.apache.org) project.
+Might make sense to merge it at some point with the [Jcr capabilities module](https://github.com/apache/sling-org-apache-sling-capabilities-jcr)
 
-This is the whiteboard area of Apache Sling. It contains experimental code that is not intended to be used in production.
+Usage
+-----
+The OakDescriptorSource will expose only those repository descriptor keys that are in a configured list (can use regex). So for exposing a descriptor key it must first be added to the OakDescriptorSource.keyWhitelist config.
 
-Sling committers are welcome to use this repository for prototypes and other experimental work. Please separate your code in distinct folders with self-explanatory names so we understand what's in there easily.
+The capabilities call will then return all whitelisted descriptor values, eg:
 
-We currently do not release code from this repository, if a module needs to be released please discuss its "promotion" on the Sling dev list and then move it to its own repository.
+    {
+      "org.apache.sling.capabilities": {
+        "data": {
+          "org.apache.sling.oak.descriptor": {
+            "jcr.repository.name": "Apache Jackrabbit Oak",
+            "jcr.repository.vendor": "The Apache Software Foundation"
+          }
+        }
+      }
+    }
 
-Older whiteboard experiments can be found at https://svn.apache.org/repos/asf/sling/whiteboard/ - the plan is to only move code that's being actively worked on and leave the rest there.