GUAC-1193 Add required connection name property to connection record.

This commit is contained in:
James Muehlner
2015-10-13 20:04:24 -07:00
parent 3c271da9b4
commit 03c1ac1876
8 changed files with 91 additions and 16 deletions

View File

@@ -37,6 +37,11 @@ public class APIConnectionRecord {
*/
private final String connectionIdentifier;
/**
* The identifier of the connection associated with this record.
*/
private final String connectionName;
/**
* The date and time the connection began.
*/
@@ -72,11 +77,12 @@ public class APIConnectionRecord {
*/
public APIConnectionRecord(ConnectionRecord record) {
this.connectionIdentifier = record.getConnectionIdentifier();
this.startDate = record.getStartDate();
this.endDate = record.getEndDate();
this.remoteHost = record.getRemoteHost();
this.username = record.getUsername();
this.active = record.isActive();
this.connectionName = record.getConnectionName();
this.startDate = record.getStartDate();
this.endDate = record.getEndDate();
this.remoteHost = record.getRemoteHost();
this.username = record.getUsername();
this.active = record.isActive();
}
/**
@@ -90,6 +96,16 @@ public class APIConnectionRecord {
return connectionIdentifier;
}
/**
* Returns the name of the connection associated with this record.
*
* @return
* The name of the connection associated with this record.
*/
public String getConnectionName() {
return connectionName;
}
/**
* Returns the date and time the connection began.
*