GUAC-1193: Include connection identifier within history records.

This commit is contained in:
Michael Jumper
2015-09-23 16:02:17 -07:00
parent e1908bf6e8
commit 3c5f72b288
5 changed files with 44 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ import org.glyptodon.guacamole.net.auth.ConnectionRecord;
*/
public class APIConnectionRecord {
/**
* The identifier of the connection associated with this record.
*/
private final String connectionIdentifier;
/**
* The date and time the connection began.
*/
@@ -66,6 +71,7 @@ public class APIConnectionRecord {
* The record to copy data from.
*/
public APIConnectionRecord(ConnectionRecord record) {
this.connectionIdentifier = record.getConnectionIdentifier();
this.startDate = record.getStartDate();
this.endDate = record.getEndDate();
this.remoteHost = record.getRemoteHost();
@@ -73,6 +79,17 @@ public class APIConnectionRecord {
this.active = record.isActive();
}
/**
* Returns the identifier of the connection associated with this
* record.
*
* @return
* The identifier of the connection associated with this record.
*/
public String getConnectionIdentifier() {
return connectionIdentifier;
}
/**
* Returns the date and time the connection began.
*