public enum CmsGallerySearchScope extends java.lang.Enum<CmsGallerySearchScope>
枚举常量和说明 |
---|
everything
Search everything.
|
shared
Search only in the shared folder.
|
site
Search in the current site.
|
siteShared
Search in the current site and the shared folder.
|
subSite
Search in the current subsite.
|
subSiteShared
Search in the current subsite and the shared folder.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getKey()
Returns the localization key for the choice.
|
boolean |
isIncludeShared()
Returns if this search scope includes the shared folder.
|
boolean |
isIncludeSite()
Returns if this search scope includes the site folder.
|
boolean |
isIncludeSubSite()
Returns if this search scope includes the sub site folder.
|
static CmsGallerySearchScope |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static CmsGallerySearchScope[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CmsGallerySearchScope everything
public static final CmsGallerySearchScope shared
public static final CmsGallerySearchScope site
public static final CmsGallerySearchScope siteShared
public static final CmsGallerySearchScope subSite
public static final CmsGallerySearchScope subSiteShared
public static CmsGallerySearchScope[] values()
for (CmsGallerySearchScope c : CmsGallerySearchScope.values()) System.out.println(c);
public static CmsGallerySearchScope valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerExceptionpublic java.lang.String getKey()
public boolean isIncludeShared()
true
if this search scope includes the shared folderpublic boolean isIncludeSite()
true
if this search scope includes the site folderpublic boolean isIncludeSubSite()
true
if this search scope includes the sub site folder