Skip to content

Commit 9f44e94

Browse files
committed
chore: rename _groupId() -> encodeGroupId()
1 parent bc4676d commit 9f44e94

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/java/io/weaviate/client/v1/async/groups/api/oidc/AssignedRolesGetter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public AssignedRolesGetter includePermissions(boolean include) {
3333
return this;
3434
}
3535

36-
private String _groupId() {
36+
private String encodeGroupId() {
3737
return UrlEncoder.encode(this.groupId);
3838
}
3939

@@ -43,6 +43,6 @@ public Future<Result<List<Role>>> run(FutureCallback<Result<List<Role>>> callbac
4343
}
4444

4545
private String path() {
46-
return String.format("/authz/groups/%s/roles/oidc?includeFullRoles=%s", _groupId(), includePermissions);
46+
return String.format("/authz/groups/%s/roles/oidc?includeFullRoles=%s", encodeGroupId(), includePermissions);
4747
}
4848
}

src/main/java/io/weaviate/client/v1/async/groups/api/oidc/RoleAssigner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public RoleAssigner witRoles(String... roles) {
3636
return this;
3737
}
3838

39-
private String _groupId() {
39+
private String encodeGroupId() {
4040
return UrlEncoder.encode(this.groupId);
4141
}
4242

@@ -56,6 +56,6 @@ public Future<Result<Boolean>> run(FutureCallback<Result<Boolean>> callback) {
5656
}
5757

5858
private String path() {
59-
return String.format("/authz/groups/%s/assign", _groupId());
59+
return String.format("/authz/groups/%s/assign", encodeGroupId());
6060
}
6161
}

src/main/java/io/weaviate/client/v1/async/groups/api/oidc/RoleRevoker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public RoleRevoker witRoles(String... roles) {
3636
return this;
3737
}
3838

39-
private String _groupId() {
39+
private String encodeGroupId() {
4040
return UrlEncoder.encode(this.groupId);
4141
}
4242

@@ -56,6 +56,6 @@ public Future<Result<Boolean>> run(FutureCallback<Result<Boolean>> callback) {
5656
}
5757

5858
private String path() {
59-
return String.format("/authz/groups/%s/revoke", _groupId());
59+
return String.format("/authz/groups/%s/revoke", encodeGroupId());
6060
}
6161
}

src/main/java/io/weaviate/client/v1/groups/api/oidc/AssignedRolesGetter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public AssignedRolesGetter includePermissions(boolean include) {
2929
return this;
3030
}
3131

32-
private String _groupId() {
32+
private String encodeGroupId() {
3333
return UrlEncoder.encode(this.groupId);
3434
}
3535

@@ -39,6 +39,6 @@ public Result<List<Role>> run() {
3939
}
4040

4141
private String path() {
42-
return String.format("/authz/groups/%s/roles/oidc?includeFullRoles=%s", _groupId(), includePermissions);
42+
return String.format("/authz/groups/%s/roles/oidc?includeFullRoles=%s", encodeGroupId(), includePermissions);
4343
}
4444
}

src/main/java/io/weaviate/client/v1/groups/api/oidc/RoleAssigner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public RoleAssigner witRoles(String... roles) {
3232
return this;
3333
}
3434

35-
private String _groupId() {
35+
private String encodeGroupId() {
3636
return UrlEncoder.encode(this.groupId);
3737
}
3838

@@ -51,6 +51,6 @@ public Result<Boolean> run() {
5151
}
5252

5353
private String path() {
54-
return String.format("/authz/groups/%s/assign", _groupId());
54+
return String.format("/authz/groups/%s/assign", encodeGroupId());
5555
}
5656
}

src/main/java/io/weaviate/client/v1/groups/api/oidc/RoleRevoker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public RoleRevoker witRoles(String... roles) {
3232
return this;
3333
}
3434

35-
private String _groupId() {
35+
private String encodeGroupId() {
3636
return UrlEncoder.encode(this.groupId);
3737
}
3838

@@ -51,6 +51,6 @@ public Result<Boolean> run() {
5151
}
5252

5353
private String path() {
54-
return String.format("/authz/groups/%s/revoke", _groupId());
54+
return String.format("/authz/groups/%s/revoke", encodeGroupId());
5555
}
5656
}

0 commit comments

Comments
 (0)