Skip to content

Commit 83b7a4d

Browse files
authored
Prepare for v6.2.0 and deprecate GetContainersResponse permissions methods (#73)
1 parent 0dcdc3d commit 83b7a4d

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# The LabKey Remote API Library for Java - Change Log
22

3-
## version TBD
4-
*Released*: TBD
3+
## version 6.2.0
4+
*Released*: 29 July 2024
55
* Add support for `auditUserComment` field for assay import
66
* Add support for `allowPlateMetadata`, `plateMetadata` fields for assay plate support
7+
* Deprecate `GetContainersResponse` permissions methods which are incompatible with LabKey Server v24.8 and
8+
* Update Commons Codec, Commons Logging, Gradle, Gradle Plugins, HttpCore, and JSONObject versions
79

810
## version 6.1.0
911
*Released*: 26 February 2024

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ repositories {
7171

7272
group "org.labkey.api"
7373

74-
version "6.2.0-SNAPSHOT"
74+
version "6.2.0"
7575

7676
dependencies {
7777
api "org.json:json:${jsonObjectVersion}"

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ artifactory_contextUrl=https://labkey.jfrog.io/artifactory
77
sourceCompatibility=17
88
targetCompatibility=17
99

10-
gradlePluginsVersion=2.2.1
10+
gradlePluginsVersion=3.0.1
1111

12-
commonsCodecVersion=1.16.0
13-
commonsLoggingVersion=1.3.0
12+
commonsCodecVersion=1.17.1
13+
commonsLoggingVersion=1.3.3
1414

1515
httpclient5Version=5.3.1
16-
httpcore5Version=5.2.4
16+
httpcore5Version=5.2.5
1717

18-
jsonObjectVersion=20231013
18+
jsonObjectVersion=20240303
1919

2020
junitVersion=4.13.2
2121

gradle/wrapper/gradle-wrapper.jar

-19.8 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/org/labkey/remoteapi/security/GetContainersResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,27 @@ public String getContainerId()
3333
return getProperty("id");
3434
}
3535

36+
@Deprecated(forRemoval = true)
3637
public Integer getUserPermissions()
3738
{
3839
return getUserPermissions(null);
3940
}
4041

42+
@Deprecated(forRemoval = true)
4143
public Integer getUserPermissions(String containerPath)
4244
{
4345
Map<String, Object> containerInfo = findContainer(containerPath, getParsedData());
4446
return (null == containerInfo) ? null : ((Number)containerInfo.get("userPermissions")).intValue();
4547
}
4648

49+
@Deprecated(forRemoval = true)
4750
public Boolean hasPermission(int perm)
4851
{
4952
Integer userPerms = getUserPermissions();
5053
return (null == userPerms) ? null : userPerms == (userPerms | perm);
5154
}
5255

56+
@Deprecated(forRemoval = true)
5357
public Boolean hasPermission(int perm, String containerPath)
5458
{
5559
Integer userPerms = getUserPermissions(containerPath);

0 commit comments

Comments
 (0)