public enum SearchScope extends java.lang.Enum<SearchScope>
资源的查询范围,如查询用户自己创建的、查询指定分享给当前用户的等
枚举常量和说明 |
---|
ALL
查询所有可查询的资源
|
COLLECTION
查询用户收藏的资源。
|
DEPARTMENT
查询用户所在部门的资源,包含用户自己分享进来的资源。
|
GROUP
查询用户所在群组的资源,包含用户自己分享进来的资源。
|
OWN
查询用户自己创建的或添加的资源
|
PUBLIC
查询公开的资源,包含用户自己的资源。
|
SHARE
查询指定分享给当前用户的资源,不包含用户自己的资源。
|
限定符和类型 | 方法和说明 |
---|---|
static SearchScope |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SearchScope[] |
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
|
public static final SearchScope ALL
public static final SearchScope PUBLIC
public static final SearchScope OWN
public static final SearchScope GROUP
public static final SearchScope DEPARTMENT
public static final SearchScope SHARE
public static final SearchScope COLLECTION
public static SearchScope[] values()
for (SearchScope c : SearchScope.values()) System.out.println(c);
public static SearchScope valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。