commit | 3a123235c14b6afd92d4896b4cb64930449d8110 | [log] [tgz] |
---|---|---|
author | Hector Oswaldo Caballero <hector.caballero@ericsson.com> | Wed Sep 02 04:59:14 2015 -0400 |
committer | Hector Oswaldo Caballero <hector.caballero@ericsson.com> | Wed Sep 02 12:15:09 2015 -0400 |
tree | 6afc1525416e19577a9f63d932a9da6fad9cc5c6 | |
parent | 80702e40cb529c70bac4248e1a96bfdb34460307 [diff] |
[websession] Make WebsessionManager.Val.expiresAt available to plugins The expiration time for a web session is stored in Val's private field 'expiresAt'. This value is needed for the websession-flatfile plugin in order to implement the cleaning up of outdated web session cache files. Create an accessor to WebsessionManager.Val.expiresAt field so that it can be used by websession-flatfile plugin. Change-Id: I2b98dbb7db0e12514adaa440b9774061ff368cb3
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/WebSessionManager.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/WebSessionManager.java index 5db620c..0250939 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/WebSessionManager.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/WebSessionManager.java
@@ -201,6 +201,10 @@ this.auth = auth; } + public long getExpiresAt() { + return expiresAt; + } + Account.Id getAccountId() { return accountId; }