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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCurrentSubsite(String referencePath) Adds the current subsite.voidaddNormalSites(boolean includeRoot, String startFolder) Adds 'normal' sites.voidAdds the shared folder.voidAdds 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
-