Search in sources :

Example 6 with PageWindow

use of org.apache.wicket.pageStore.PageWindowManager.PageWindow in project wicket by apache.

the class DebugDiskDataStore method getLastPageWindows.

/**
 * @param sessionId
 * @param count
 * @return a list of the last N page windows
 */
public List<PageWindow> getLastPageWindows(String sessionId, int count) {
    List<PageWindow> pageWindows = new ArrayList<>();
    SessionEntry sessionEntry = getSessionEntry(sessionId, false);
    if (sessionEntry != null) {
        PageWindowManager windowManager = sessionEntry.getManager();
        pageWindows.addAll(windowManager.getLastPageWindows(count));
    }
    return pageWindows;
}
Also used : ArrayList(java.util.ArrayList) PageWindowManager(org.apache.wicket.pageStore.PageWindowManager) PageWindow(org.apache.wicket.pageStore.PageWindowManager.PageWindow)

Aggregations

PageWindow (org.apache.wicket.pageStore.PageWindowManager.PageWindow)6 PageWindowManager (org.apache.wicket.pageStore.PageWindowManager)4 ArrayList (java.util.ArrayList)3 Test (org.junit.Test)3 DebugDiskDataStore (org.apache.wicket.devutils.diskstore.DebugDiskDataStore)1