public List<ConnectionRecord> retrieveHistory(ModeledAuthenticatedUser user,ModeledConnection connection) throws GuacamoleException {
  String identifier=connection.getIdentifier();
  if (hasObjectPermission(user,identifier,ObjectPermission.Type.READ)) {
    List<ConnectionRecordModel> models=connectionRecordMapper.select(identifier);
    List<ConnectionRecord> records=new ArrayList<ConnectionRecord>(tunnelService.getActiveConnections(connection));
    Collections.reverse(records);
    for (    ConnectionRecordModel model : models)     records.add(getObjectInstance(model));
    return records;
  }
  throw new GuacamoleSecurityException("Permission denied.");
}

public List < ConnectionRecord > retrieveHistory ( ModeledAuthenticatedUser user , ModeledConnection connection ) throws GuacamoleException { String identifier = connection . getIdentifier ( ) ; if ( hasObjectPermission ( user , identifier , ObjectPermission . Type . READ ) ) { List < ConnectionRecordModel > models = connectionRecordMapper . select ( identifier ) ; List < ConnectionRecord > records = new ArrayList < ConnectionRecord > ( tunnelService . getActiveConnections ( connection ) ) ; Collections . reverse ( records ) ; for ( ConnectionRecordModel model : models ) records . add ( getObjectInstance ( model ) ) ; return records ; } throw new GuacamoleSecurityException ( "Permission denied." ) ; }
retrieves the connection history of the given connection , including any active connections .
