|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.site.CmsSiteManager
OpenCms.getSiteManager()
to obtain the configured site manager instance
instead of the direct static access methods of this class.
public final class CmsSiteManager
Static site manager, kept for reasons of keeping the API backward compatible only.
Use OpenCms.getSiteManager()
to obtain the configured site manager instance
instead of the direct static access methods of this class.
Please note that this class may be removed or significantly changes in the next major OpenCms released, so make sure you remove all references ASAP.
Method Summary | |
---|---|
static java.util.List |
getAvailableSites(CmsObject cms,
boolean workplaceMode)
Deprecated. Use OpenCms.getSiteManager() to obtain the configured site manager instance,
then use the method with the same name and signature. |
static java.util.List |
getAvailableSites(CmsObject cms,
boolean workplaceMode,
java.lang.String ouFqn)
Deprecated. Use OpenCms.getSiteManager() to obtain the configured site manager instance,
then use the method with the same name and signature. |
static CmsSite |
getCurrentSite(CmsObject cms)
Deprecated. Use OpenCms.getSiteManager() to obtain the configured site manager instance,
then use the method with the same name and signature. |
static CmsSite |
getSite(java.lang.String siteRoot)
Deprecated. Use OpenCms.getSiteManager() to obtain the configured site manager instance,
then use the method with the same name and signature. |
static java.lang.String |
getSiteRoot(java.lang.String rootPath)
Deprecated. Use OpenCms.getSiteManager() to obtain the configured site manager instance,
then use the method with the same name and signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List getAvailableSites(CmsObject cms, boolean workplaceMode)
OpenCms.getSiteManager()
to obtain the configured site manager instance,
then use the method with the same name and signature.
cms
- the current cms contextworkplaceMode
- if true, the root and current site is included for the admin user
and the view permission is required to see the site root
public static java.util.List getAvailableSites(CmsObject cms, boolean workplaceMode, java.lang.String ouFqn)
OpenCms.getSiteManager()
to obtain the configured site manager instance,
then use the method with the same name and signature.
cms
- the current cms contextworkplaceMode
- if true, the root and current site is included for the admin user
and the view permission is required to see the site rootouFqn
- the organizational unit
public static CmsSite getCurrentSite(CmsObject cms)
OpenCms.getSiteManager()
to obtain the configured site manager instance,
then use the method with the same name and signature.
In the unlikely case that no site matches with the provided OpenCms user context, the default site is returned.
cms
- the OpenCms user context object to check for the site
public static CmsSite getSite(java.lang.String siteRoot)
OpenCms.getSiteManager()
to obtain the configured site manager instance,
then use the method with the same name and signature.
null
if no configured site has that root path.
The site root must have the form:
/sites/default
.
That means there must be a leading, but no trailing slash.
siteRoot
- the root path to look up the site for
null
if no configured site has that root pathpublic static java.lang.String getSiteRoot(java.lang.String rootPath)
OpenCms.getSiteManager()
to obtain the configured site manager instance,
then use the method with the same name and signature.
null
if the path does not match any site root.
The site root returned will have the form:
/sites/default
.
That means there will a leading, but no trailing slash.
rootPath
- the root path of a resource
null
if the path does not match any site root
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |