Package org.opencms.ui.apps
Class CmsQuickLaunchLocationCache
java.lang.Object
org.opencms.ui.apps.CmsQuickLaunchLocationCache
- All Implemented Interfaces:
Serializable
Stores the last opened locations for file explorer, page editor and sitemap editor.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFileExplorerLocation
(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.getPageEditorLocation
(CmsObject cms, String siteRoot) Returns the page editor location for the given site root.getSitemapEditorLocation
(String siteRoot) Returns the sitemap editor location for the given site root.void
setFileExplorerLocation
(String siteRoot, String location) Sets the latest file explorer location for the given site.void
setPageEditorResource
(CmsObject cms, String siteRoot, CmsResource resource) Sets the latest page editor location for the given site.void
setSitemapEditorLocation
(String siteRoot, String location) Sets the latest sitemap editor location for the given site.
-
Constructor Details
-
CmsQuickLaunchLocationCache
public CmsQuickLaunchLocationCache()Constructor.
-
-
Method Details
-
getLocationCache
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
Returns the page editor location for the given site root.- Parameters:
cms
- the current CMS contextsiteRoot
- 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
Sets the latest file explorer location for the given site.- Parameters:
siteRoot
- the site rootlocation
- the location
-
setPageEditorResource
Sets the latest page editor location for the given site.- Parameters:
siteRoot
- the site rootresource
- the location resource
-
setSitemapEditorLocation
Sets the latest sitemap editor location for the given site.- Parameters:
siteRoot
- the site rootlocation
- the location
-