public class CmsSiteSelectorOptionBuilder
extends java.lang.Object
构造器和说明 |
---|
CmsSiteSelectorOptionBuilder(CmsObject cms)
Creates a new builder instance.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addCurrentSubsite(java.lang.String referencePath)
Adds the current subsite.
|
void |
addNormalSites(boolean includeRoot,
java.lang.String startFolder)
Adds 'normal' sites.
|
void |
addSharedSite()
Adds the shared folder.
|
java.util.List<CmsSiteSelectorOption> |
getOptions()
Gets the site selector options.
|
public CmsSiteSelectorOptionBuilder(CmsObject cms)
cms
- the CMS context to usepublic void addCurrentSubsite(java.lang.String referencePath)
referencePath
- the reference pathpublic void addNormalSites(boolean includeRoot, java.lang.String startFolder)
includeRoot
- if true, also adds the root sitestartFolder
- the users configured start folderpublic void addSharedSite()
public java.util.List<CmsSiteSelectorOption> getOptions()