Skip to content

Commit

Permalink
bump version to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brambg committed Nov 6, 2023
1 parent f01b204 commit bcdee5b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>io.github.knaw-huc</groupId>
<artifactId>annorepo</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>
</parent>

<dependencyManagement>
Expand Down
26 changes: 23 additions & 3 deletions client/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add the following to your `pom.xml`
<dependency>
<groupId>io.github.knaw-huc</groupId>
<artifactId>annorepo-client</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>
</dependency>
```

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>io.github.knaw-huc</groupId>
<artifactId>annorepo</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>
</parent>

<artifactId>annorepo-common</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Shared libraries/classes/methods for AnnoRepo</description>
Expand Down
4 changes: 2 additions & 2 deletions integration-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<parent>
<groupId>io.github.knaw-huc</groupId>
<artifactId>annorepo</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>
</parent>

<artifactId>annorepo-integration-test</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>

<properties>
<mainClass>nl.knaw.huc.annorepo.integration.IntegrationTest</mainClass>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>io.github.knaw-huc</groupId>
<artifactId>annorepo</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>
<packaging>pom</packaging>

<name>AnnoRepo</name>
Expand Down
2 changes: 1 addition & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>io.github.knaw-huc</groupId>
<artifactId>annorepo</artifactId>
<version>0.6.0-SNAPSHOT</version>
<version>0.6.0</version>
</parent>

<properties>
Expand Down

0 comments on commit bcdee5b

Please sign in to comment.