Introduce filter_by and deprecate authorized_only (close #579)
in the OAuth2ClientList web-service.
Also cleaned up dory access and refresh tokens for confidentialClientId
(see OAuth2TestBase)
Change-Id: I47e2416c0a6ce9fc3f500f5f30e3ca021f984142
diff --git a/src/main/java/de/ids_mannheim/korap/oauth2/dto/OAuth2ClientInfoDto.java b/src/main/java/de/ids_mannheim/korap/oauth2/dto/OAuth2ClientInfoDto.java
index 6f45900..6f7ab07 100644
--- a/src/main/java/de/ids_mannheim/korap/oauth2/dto/OAuth2ClientInfoDto.java
+++ b/src/main/java/de/ids_mannheim/korap/oauth2/dto/OAuth2ClientInfoDto.java
@@ -19,7 +19,7 @@
*
*/
@JsonInclude(Include.NON_EMPTY)
-public class OAuth2ClientInfoDto {
+public class OAuth2ClientInfoDto implements Comparable<OAuth2ClientInfoDto>{
@JsonProperty("super")
private boolean isSuper;
@@ -84,6 +84,12 @@
}
}
}
+
+ @Override
+ public int compareTo (OAuth2ClientInfoDto o) {
+ return this.getClientName().compareTo(o.getClientName());
+ }
+
public boolean isSuper () {
return isSuper;