Package org.apache.wicket.devutils.diskstore

Examples of org.apache.wicket.devutils.diskstore.DebugDiskDataStore


  {
    List<PageWindow> lastPageWindows = new ArrayList<PageWindow>();
    if (sessionId != null && sessionId.getObject() != null)
    {
      String sessId = sessionId.getObject();
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      List<PageWindow> pageWindows = dataStore.getLastPageWindows(sessId, MAX_PAGES_TO_READ);
      lastPageWindows.addAll(pageWindows);
    }
    return lastPageWindows;
  }
View Full Code Here


  {
    List<PageWindow> lastPageWindows = new ArrayList<>();
    if (sessionId != null && sessionId.getObject() != null)
    {
      String sessId = sessionId.getObject();
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      List<PageWindow> pageWindows = dataStore.getLastPageWindows(sessId, MAX_PAGES_TO_READ);
      lastPageWindows.addAll(pageWindows);
    }
    return lastPageWindows;
  }
View Full Code Here

  protected List<String> load()
  {
    List<String> sessionIds = new ArrayList<>();
    if (Application.exists())
    {
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      File appStoreFolder = dataStore.getStoreFolder();
      if (appStoreFolder.isDirectory())
      {
        String[] sessionIdFileNames = appStoreFolder.list();
        if (sessionIdFileNames != null)
        {
View Full Code Here

  {
    List<PageWindow> lastPageWindows = new ArrayList<PageWindow>();
    if (sessionId != null && sessionId.getObject() != null)
    {
      String sessId = sessionId.getObject();
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      List<PageWindow> pageWindows = dataStore.getLastPageWindows(sessId, MAX_PAGES_TO_READ);
      lastPageWindows.addAll(pageWindows);
    }
    return lastPageWindows;
  }
View Full Code Here

    if ("name".equals(getPropertyExpression()))
    {
      int pageId = windowDescription.getId();
      DebugPageManagerProvider pageManagerProvider = (DebugPageManagerProvider)Application.get()
        .getPageManagerProvider();
      DebugDiskDataStore dataStore = pageManagerProvider.getDataStore();
      String sessionId = windowDescription.getSessionId();
      byte[] data = dataStore.getData(sessionId, pageId);
      ISerializer serializer = Application.get().getFrameworkSettings().getSerializer();
      Object page = serializer.deserialize(data);
      label = page.getClass().getName();
    }
    else if ("id".equals(getPropertyExpression()))
View Full Code Here

  {
    List<PageWindow> lastPageWindows = new ArrayList<PageWindow>();
    if (sessionId != null && sessionId.getObject() != null)
    {
      String sessId = sessionId.getObject();
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      List<PageWindow> pageWindows = dataStore.getLastPageWindows(sessId, MAX_PAGES_TO_READ);
      lastPageWindows.addAll(pageWindows);
    }
    return lastPageWindows;
  }
View Full Code Here

   */
  public static DebugDiskDataStore getDataStore()
  {
    DebugPageManagerProvider pageManagerProvider = (DebugPageManagerProvider)Application.get()
      .getPageManagerProvider();
    DebugDiskDataStore dataStore = pageManagerProvider.getDataStore();
    return dataStore;
  }
View Full Code Here

  protected List<String> load()
  {
    List<String> sessionIds = new ArrayList<String>();
    if (Application.exists())
    {
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      File appStoreFolder = dataStore.getStoreFolder();
      if (appStoreFolder.isDirectory())
      {
        String[] sessionIdFileNames = appStoreFolder.list();
        if (sessionIdFileNames != null)
        {
View Full Code Here

    if ("name".equals(getPropertyExpression()))
    {
      int pageId = windowDescription.getId();
      DebugPageManagerProvider pageManagerProvider = (DebugPageManagerProvider)Application.get()
        .getPageManagerProvider();
      DebugDiskDataStore dataStore = pageManagerProvider.getDataStore();
      String sessionId = windowDescription.getSessionId();
      byte[] data = dataStore.getData(sessionId, pageId);
      ISerializer serializer = Application.get().getFrameworkSettings().getSerializer();
      Object page = serializer.deserialize(data);
      label = page.getClass().getName();
    }
    else if ("id".equals(getPropertyExpression()))
View Full Code Here

  {
    List<PageWindow> lastPageWindows = new ArrayList<PageWindow>();
    if (sessionId != null && sessionId.getObject() != null)
    {
      String sessId = sessionId.getObject();
      DebugDiskDataStore dataStore = DataStoreHelper.getDataStore();
      List<PageWindow> pageWindows = dataStore.getLastPageWindows(sessId, MAX_PAGES_TO_READ);
      lastPageWindows.addAll(pageWindows);
    }
    return lastPageWindows;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.devutils.diskstore.DebugDiskDataStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.