Package org.opencms.ade.galleries
Class CmsSiteSelectorOptionBuilder
java.lang.Object
org.opencms.ade.galleries.CmsSiteSelectorOptionBuilder
Helper class for building the options for the site selector in the gallery dialog.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCurrentSubsite
(String referencePath) Adds the current subsite.void
addNormalSites
(boolean includeRoot, String startFolder) Adds 'normal' sites.void
Adds the shared folder.void
Adds the system folder.Gets the site selector options.
-
Constructor Details
-
CmsSiteSelectorOptionBuilder
Creates a new builder instance.- Parameters:
cms
- the CMS context to use
-
-
Method Details
-
addCurrentSubsite
Adds the current subsite.- Parameters:
referencePath
- the reference path
-
addNormalSites
Adds 'normal' sites.- Parameters:
includeRoot
- if true, also adds the root sitestartFolder
- the users configured start folder
-
addSystemFolder
Adds the system folder. -
getOptions
Gets the site selector options.- Returns:
- the site selector options
-