Package org.opencms.ade.galleries.shared
Enum CmsGallerySearchScope
- All Implemented Interfaces:
Serializable
,Comparable<CmsGallerySearchScope>
,java.lang.constant.Constable
An enum that represents the possible search scope choices in the ADE gallery search tab.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSearch everything.Search only in the shared folder.Search in the current site.Search in the current site and the shared folder.Search in the current subsite.Search in the current subsite and the shared folder. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Returns the localization key for the choice.boolean
Returns if this search scope includes the shared folder.boolean
Returns if this search scope includes the site folder.boolean
Returns if this search scope includes the sub site folder.static CmsGallerySearchScope
Returns the enum constant of this type with the specified name.static CmsGallerySearchScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
everything
Search everything. -
site
Search in the current site. -
subSite
Search in the current subsite.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getKey
Returns the localization key for the choice.- Returns:
- the localization key for the choice
-
isIncludeSite
Returns if this search scope includes the site folder.- Returns:
true
if this search scope includes the site folder
-
isIncludeSubSite
Returns if this search scope includes the sub site folder.- Returns:
true
if this search scope includes the sub site folder
-