Package org.opencms.ui.apps
Class CmsQuickLaunchLocationCache
- java.lang.Object
-
- org.opencms.ui.apps.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
-
-
Constructor Summary
Constructors Constructor Description CmsQuickLaunchLocationCache()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileExplorerLocation(java.lang.String siteRoot)
Returns the file explorer location for the given site root.static CmsQuickLaunchLocationCache
getLocationCache(javax.servlet.http.HttpSession session)
Returns the location cache from the user session.java.lang.String
getPageEditorLocation(CmsObject cms, java.lang.String siteRoot)
Returns the page editor location for the given site root.CmsResource
getPageEditorResource(java.lang.String siteRoot)
Gets the cached location resource for the given site root.java.lang.String
getSitemapEditorLocation(java.lang.String siteRoot)
Returns the sitemap editor location for the given site root.void
setFileExplorerLocation(java.lang.String siteRoot, java.lang.String location)
Sets the latest file explorer location for the given site.void
setPageEditorResource(java.lang.String siteRoot, CmsResource resource)
Sets the latest page editor location for the given site.void
setSitemapEditorLocation(java.lang.String siteRoot, java.lang.String location)
Sets the latest sitemap editor location for the given site.
-
-
-
Constructor Detail
-
CmsQuickLaunchLocationCache
public CmsQuickLaunchLocationCache()
Constructor.
-
-
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 contextsiteRoot
- 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 rootlocation
- 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 rootresource
- 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 rootlocation
- the location
-
-