public class SimpleConnectionRecordSet extends Object implements ConnectionRecordSet
ConnectionRecordSet.SortableProperty
Constructor and Description |
---|
SimpleConnectionRecordSet() |
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.
|
public Collection<ConnectionRecord> asCollection() throws org.apache.guacamole.GuacamoleException
ConnectionRecordSet
asCollection
in interface ConnectionRecordSet
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the connection records within
this set.public ConnectionRecordSet contains(String value) throws org.apache.guacamole.GuacamoleException
ConnectionRecordSet
contains
in interface ConnectionRecordSet
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.public ConnectionRecordSet limit(int limit) throws org.apache.guacamole.GuacamoleException
ConnectionRecordSet
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
in interface ConnectionRecordSet
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.public ConnectionRecordSet sort(ConnectionRecordSet.SortableProperty property, boolean desc) throws org.apache.guacamole.GuacamoleException
ConnectionRecordSet
sort
in interface ConnectionRecordSet
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 © 2016. All rights reserved.