Class CmsQuickLaunchLocationCache

  • All Implemented Interfaces:
    java.io.Serializable

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

    See Also:
    Serialized Form
    • Method Detail

      • 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

        public java.lang.String getFileExplorerLocation​(java.lang.String siteRoot)
        Returns the file explorer location for the given site root.

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

        public java.lang.String getPageEditorLocation​(CmsObject cms,
                                                      java.lang.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
      • getPageEditorResource

        public CmsResource getPageEditorResource​(java.lang.String siteRoot)
        Gets the cached location resource for the given site root.
        Parameters:
        siteRoot - the site root
        Returns:
        the location resource
      • getSitemapEditorLocation

        public java.lang.String getSitemapEditorLocation​(java.lang.String siteRoot)
        Returns the sitemap editor location for the given site root.

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

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

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

        public void setPageEditorResource​(java.lang.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​(java.lang.String siteRoot,
                                             java.lang.String location)
        Sets the latest sitemap editor location for the given site.

        Parameters:
        siteRoot - the site root
        location - the location