Class CmsQuickLaunchLocationCache

java.lang.Object
org.opencms.ui.apps.CmsQuickLaunchLocationCache
All Implemented Interfaces:
Serializable

public class CmsQuickLaunchLocationCache extends Object implements Serializable
Stores the last opened locations for file explorer, page editor and sitemap editor.

See Also:
  • Constructor Details

  • Method Details

    • getLocationCache

      public static CmsQuickLaunchLocationCache getLocationCache(javax.servlet.http.HttpSession session)
      Returns the location cache from the user session.

      Parameters:
      session - the session
      Returns:
      the location cache
    • getFileExplorerLocation

      Returns the file explorer location for the given site root.

      Parameters:
      siteRoot - the site root
      Returns:
      the location
    • getPageEditorLocation

      public String getPageEditorLocation(CmsObject cms, String siteRoot)
      Returns the page editor location for the given site root.

      Parameters:
      cms - the current CMS context
      siteRoot - the site root
      Returns:
      the location
    • getSitemapEditorLocation

      Returns the sitemap editor location for the given site root.

      Parameters:
      siteRoot - the site root
      Returns:
      the location
    • setFileExplorerLocation

      public void setFileExplorerLocation(String siteRoot, String location)
      Sets the latest file explorer location for the given site.

      Parameters:
      siteRoot - the site root
      location - the location
    • setPageEditorResource

      public void setPageEditorResource(CmsObject cms, String siteRoot, CmsResource resource)
      Sets the latest page editor location for the given site.

      Parameters:
      siteRoot - the site root
      resource - the location resource
    • setSitemapEditorLocation

      public void setSitemapEditorLocation(String siteRoot, String location)
      Sets the latest sitemap editor location for the given site.

      Parameters:
      siteRoot - the site root
      location - the location