diff --git a/client/pom.xml b/client/pom.xml
index 77f80d5a..a90a42aa 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -17,7 +17,7 @@
io.github.knaw-huc
annorepo
- 0.6.0-SNAPSHOT
+ 0.6.0
diff --git a/client/readme.md b/client/readme.md
index 2e794b1c..78e1fb30 100644
--- a/client/readme.md
+++ b/client/readme.md
@@ -14,7 +14,7 @@ Add the following to your `pom.xml`
io.github.knaw-huc
annorepo-client
- 0.6.0-SNAPSHOT
+ 0.6.0
```
@@ -126,6 +126,7 @@ Parameters:
- `preferredName`: optional String, indicating the preferred name for the container. May be overridden by the server.
- `label`: optional String, a human-readable label for the container.
+- `readOnlyForAnonymousUsers`: optional Boolean, set to `true` to make the container read-only for anonymous users (default: false).
If the annorepo instance has authorization enabled, the user creating a container will automatically get `Role.ADMIN`
rights to that container.
@@ -136,7 +137,8 @@ rights to that container.
```kotlin
val preferredName = "my-container"
val label = "A container for all my annotations"
-val success = client.createContainer(preferredName, label).fold(
+val readOnlyForAnonymousUsers = true
+val success = client.createContainer(preferredName, label, readOnlyForAnonymousUsers).fold(
{ error: RequestError ->
handleError(error)
false
@@ -153,7 +155,8 @@ val success = client.createContainer(preferredName, label).fold(
```java
String preferredName = "my-container";
String label = "A container for all my annotations";
-Boolean success = client.createContainer(preferredName,label).fold(
+Boolean readOnlyForAnonymousUsers = true;
+Boolean success = client.createContainer(preferredName,label,readOnlyForAnonymousUsers).fold(
(RequestError error) -> {
handleError(error);
return false;
@@ -224,6 +227,23 @@ client.deleteContainer(containerName, eTag).map(
);
```
+### Changing the `read-only for anonynous users` setting for a container
+
+**Kotlin:**
+
+```kotlin
+client.setAnonymousUserReadAccess(containerName, true)
+ .map { result: SetAnonymousUserReadAccessResult -> true }
+```
+
+**Java**
+
+```java
+client.setAnonymousUserReadAccess(containerName, true).map(
+ (ARResult.SetAnonymousUserReadAccessResult result) -> true
+);
+```
+
## Annotations
### Adding an annotation to a container
diff --git a/common/pom.xml b/common/pom.xml
index a65d5604..56301151 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -7,11 +7,11 @@
io.github.knaw-huc
annorepo
- 0.6.0-SNAPSHOT
+ 0.6.0
annorepo-common
- 0.6.0-SNAPSHOT
+ 0.6.0
${project.groupId}:${project.artifactId}
Shared libraries/classes/methods for AnnoRepo
diff --git a/integration-test/pom.xml b/integration-test/pom.xml
index 8e4183af..f5c0a53f 100644
--- a/integration-test/pom.xml
+++ b/integration-test/pom.xml
@@ -7,12 +7,12 @@
io.github.knaw-huc
annorepo
- 0.6.0-SNAPSHOT
+ 0.6.0
annorepo-integration-test
${project.groupId}:${project.artifactId}
- 0.6.0-SNAPSHOT
+ 0.6.0
nl.knaw.huc.annorepo.integration.IntegrationTest
diff --git a/pom.xml b/pom.xml
index 84a56df2..64c87745 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
io.github.knaw-huc
annorepo
- 0.6.0-SNAPSHOT
+ 0.6.0
pom
AnnoRepo
diff --git a/server/pom.xml b/server/pom.xml
index 74eeebfd..c4bc79ad 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -14,7 +14,7 @@
io.github.knaw-huc
annorepo
- 0.6.0-SNAPSHOT
+ 0.6.0