Enum CmsGallerySearchScope

java.lang.Object
java.lang.Enum<CmsGallerySearchScope>
org.opencms.ade.galleries.shared.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.

  • Enum Constant Details

  • Method Details

    • values

      public static CmsGallerySearchScope[] 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

      public static CmsGallerySearchScope valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()
      Returns the localization key for the choice.

      Returns:
      the localization key for the choice
    • isIncludeShared

      public boolean isIncludeShared()
      Returns if this search scope includes the shared folder.

      Returns:
      true if this search scope includes the shared folder
    • isIncludeSite

      public boolean isIncludeSite()
      Returns if this search scope includes the site folder.

      Returns:
      true if this search scope includes the site folder
    • isIncludeSubSite

      public boolean isIncludeSubSite()
      Returns if this search scope includes the sub site folder.

      Returns:
      true if this search scope includes the sub site folder