◆ QuickConnectHistoryGateway()
| com.freerdp.freerdpcore.services.QuickConnectHistoryGateway.QuickConnectHistoryGateway |
( |
HistoryDao |
dao | ) |
|
|
inline |
◆ addHistoryItem()
| void com.freerdp.freerdpcore.services.QuickConnectHistoryGateway.addHistoryItem |
( |
String |
item | ) |
|
|
inline |
◆ findHistory()
| ArrayList< BookmarkBase > com.freerdp.freerdpcore.services.QuickConnectHistoryGateway.findHistory |
( |
String |
filter | ) |
|
|
inline |
Definition at line 29 of file QuickConnectHistoryGateway.java.
30 {
31 String query = (filter != null && !filter.isEmpty()) ? ("%" + filter + "%") : "%";
32 List<HistoryEntity> entities = dao.findHistory(query);
33
34 ArrayList<BookmarkBase> result = new ArrayList<>(entities.size());
35 for (HistoryEntity entity : entities)
36 {
37 BookmarkBase bookmark = new BookmarkBase();
38 bookmark.setType(BookmarkBase.TYPE_QUICKCONNECT);
39 bookmark.setLabel(entity.item);
40 bookmark.setHostname(entity.item);
41 result.add(bookmark);
42 }
43 return result;
44 }
◆ historyItemExists()
| boolean com.freerdp.freerdpcore.services.QuickConnectHistoryGateway.historyItemExists |
( |
String |
item | ) |
|
|
inline |
◆ removeHistoryItem()
| void com.freerdp.freerdpcore.services.QuickConnectHistoryGateway.removeHistoryItem |
( |
String |
hostname | ) |
|
|
inline |
The documentation for this class was generated from the following file: