This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 45a846c fix code highlighting
45a846c is described below
commit 45a846c2a3ba1fbd48cb1d3bc243c9b62978dd06
Author: Konrad Windszus <[email protected]>
AuthorDate: Thu Nov 4 17:13:58 2021 +0100
fix code highlighting
---
.../content/documentation/the-sling-engine/sling-api-crud-support.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
b/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
index 771ce2a..0b7549d 100644
---
a/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
+++
b/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
@@ -13,10 +13,10 @@ As of version 2.3.0, the Sling API provides full Create
Read Update Delete (CRUD
* [`void delete(Resource resource) throws
PersistenceException`](https://sling.apache.org/apidocs/sling11/org/apache/sling/api/resource/ResourceResolver.html#delete-org.apache.sling.api.resource.Resource-)
* [`Resource create(Resource parent, String name, Map<String, Object>
properties) throws
PersistenceException`](https://sling.apache.org/apidocs/sling11/org/apache/sling/api/resource/ResourceResolver.html#create-org.apache.sling.api.resource.Resource-java.lang.String-java.util.Map-)
* [`void
revert()`](https://sling.apache.org/apidocs/sling11/org/apache/sling/api/resource/ResourceResolver.html#revert--)
- * [`void commit()` throws
PersistenceException](https://sling.apache.org/apidocs/sling11/org/apache/sling/api/resource/ResourceResolver.html#commit--)
+ * [`void commit() throws
PersistenceException`](https://sling.apache.org/apidocs/sling11/org/apache/sling/api/resource/ResourceResolver.html#commit--)
* [`boolean
hasChanges()`](https://sling.apache.org/apidocs/sling7/org/apache/sling/api/resource/ResourceResolver.html#hasChanges--)
* [`void
refresh()`](https://sling.apache.org/apidocs/sling11/org/apache/sling/api/resource/ResourceResolver.html#refresh--)
- * `orderBefore(Resource parent, String name, String followingSiblingName)
throws UnsupportedOperationException, PersistenceException,
IllegalArgumentException`(since [API
2.24.0](https://issues.apache.org/jira/browse/SLING-7975))
+ * `orderBefore(Resource parent, String name, String followingSiblingName)
throws UnsupportedOperationException, PersistenceException,
IllegalArgumentException` (since [API
2.24.0](https://issues.apache.org/jira/browse/SLING-7975))
Those methods provide the ability to create and delete resources as well. In
addition you can adapt a `Resource` to a `ModifiableValueMap` interface which
is similar to the `ValueMap` interface, but allows for updating properties on a
resource.