public interface ConnectionRecordSet
Modifier and Type | Interface and Description |
---|---|
static class |
ConnectionRecordSet.SortableProperty
All properties of connection records which can be used as sorting
criteria.
|
Modifier and Type | Method and Description |
---|---|
Collection<ConnectionRecord> |
asCollection()
Returns all connection records within this set as a standard Collection.
|
ConnectionRecordSet |
contains(String value)
Returns the subset of connection records to only those where the
connection name, user identifier, or any associated date field contain
the given value.
|
ConnectionRecordSet |
limit(int limit)
Returns the subset of connection history records containing only the
first
limit records. |
ConnectionRecordSet |
sort(ConnectionRecordSet.SortableProperty property,
boolean desc)
Returns a ConnectionRecordSet containing identically the records within
this set, sorted according to the specified criteria.
|
Collection<ConnectionRecord> asCollection() throws org.apache.guacamole.GuacamoleException
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the connection records within
this set.ConnectionRecordSet contains(String value) throws org.apache.guacamole.GuacamoleException
value
- The value which all connection records within the resulting subset
should contain within their associated connection name or user
identifier.org.apache.guacamole.GuacamoleException
- If an error occurs while restricting the current subset.ConnectionRecordSet limit(int limit) throws org.apache.guacamole.GuacamoleException
limit
records. If the subset has fewer than
limit
records, then this function has no effect. This
function may also affect the contents of the current
ConnectionRecordSet. The contents of the current ConnectionRecordSet
should NOT be relied upon after this function is called.limit
- The maximum number of records that the new subset should contain.limit
records.org.apache.guacamole.GuacamoleException
- If an error occurs while limiting the current subset.ConnectionRecordSet sort(ConnectionRecordSet.SortableProperty property, boolean desc) throws org.apache.guacamole.GuacamoleException
property
- The property by which the connection records within the resulting
set should be sorted.desc
- Whether the records should be sorted according to the specified
property in descending order. If false, records will be sorted
according to the specified property in ascending order.org.apache.guacamole.GuacamoleException
- If an error occurs while sorting the current subset.Copyright © 2017. All rights reserved.