Class Info |
|---|
public final class Permission extends GenericJson Permission实体,文件权限类。 |
Qualifier and Type | Method Name and Description |
|---|---|
clone() 克隆一个Permission类对象。 | |
String | 获取用户类型。 |
Boolean | 获取该权限是否允许文件通过搜索发现。 |
String | 获取资源类型的标识。 |
Boolean | 获取该权限关联的帐号是否已被删除。 |
String | 获取用户、组或域的显示名称。 |
DateTime | 获取该权限即将过期的时间。 |
String | getId() 获取该权限的ID。 |
String | 获取用户头像链接。 |
String | getRole() 获取该权限授予的角色,取值为owner, writer, reader。 |
String | getType() 获取被授予人的类型,取值为user, anyone。 |
String | 获取用户“帐号”。 |
set(String fieldName, Object value) 设置自定义属性及属性值。 | |
setAccountType(String accountType) 设置用户类型。 | |
setCanDiscoverFile(Boolean canDiscoverFile) 设置该权限是否允许文件通过搜索发现。 | |
setCategory(String category) 设置资源类型的标识。 | |
setDeleted(Boolean deleted) 设置该权限关联的帐号是否已被删除。 | |
setDisplayName(String displayName) 设置用户、组或域的显示名称。 | |
setExpirationTime(DateTime expirationTime) 设置该权限即将过期的时间。 | |
setId(String id) 设置该权限的ID。 | |
setProfilePhotoLink(String profilePhotoLink) 设置用户头像链接。 | |
setRole(String role) 设置该权限授予的角色 ,取值为owner, writer, reader。 | |
setType(String type) 设置被授予人的类型,取值为user, anyone。 | |
setUserAccount(String userAccount) 设置用户“帐号”。 |
Method |
|---|
public Permission clone() 克隆一个Permission对象。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Boolean getCanDiscoverFile() 获取该权限是否允许文件通过搜索发现。 |
Returns
Type | Description |
|---|---|
Boolean | 返回该权限是否允许文件通过搜索发现。 |
Method |
|---|
public Boolean getDeleted() 获取该权限关联的帐号是否已被删除。 |
Returns
Type | Description |
|---|---|
Boolean | 返回该权限关联的帐号是否已被删除。 |
Method |
|---|
public String getDisplayName() 获取用户、组或域的显示名称。 |
Returns
Type | Description |
|---|---|
String | 返回用户、组或域的显示名称。 |
Method |
|---|
public DateTime getExpirationTime() 获取该权限即将过期的时间。 |
Returns
Type | Description |
|---|---|
DateTime | 返回该权限即将过期的时间。 |
Method |
|---|
public String getCategory() 获取资源类型的标识。 |
Returns
Type | Description |
|---|---|
String | 返回资源类型的标识。 |
Method |
|---|
public String getProfilePhotoLink() 获取用户头像链接。 |
Returns
Type | Description |
|---|---|
String | 返回用户头像链接。 |
Method |
|---|
public String getRole() 获取该权限授予的角色,取值为owner, writer, reader。 |
Returns
Type | Description |
|---|---|
String | 返回该权限授予的角色,取值为owner, writer, reader。 |
Method |
|---|
public String getType() 获取被授予人的类型,取值为user, anyone。 |
Returns
Type | Description |
|---|---|
String | 返回被授予人的类型,取值为user, anyone。 |
Method |
|---|
public String getUserAccount() 获取用户“帐号”。 |
Returns
Type | Description |
|---|---|
String | 返回用户“帐号”。 |
Method |
|---|
public Permission set(String fieldName, Object value) 设置自定义属性及属性值。 |
Parameters
Name | Description |
|---|---|
fieldName | 属性名称。 |
value | 属性值。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setCanDiscoverFile(Boolean canDiscoverFile) 设置该权限是否允许文件通过搜索发现。 |
Parameters
Name | Description |
|---|---|
canDiscoverFile | 该权限是否允许文件通过搜索发现。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setDeleted(Boolean deleted) 设置该权限关联的帐号是否已被删除。 |
Parameters
Name | Description |
|---|---|
deleted | 该权限关联的帐号是否已被删除。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setDisplayName(String displayName) 设置用户、组或域的显示名称。 |
Parameters
Name | Description |
|---|---|
displayName | 设置用户、组或域的显示名称。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setExpirationTime(DateTime expirationTime) 设置该权限即将过期的时间。 |
Parameters
Name | Description |
|---|---|
expirationTime | 该权限即将过期的时间。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setId(String id) 设置该权限的ID。 |
Parameters
Name | Description |
|---|---|
id | 该权限的ID。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setCategory(String category) 设置资源类型的标识。 |
Parameters
Name | Description |
|---|---|
category | 资源类型的标识。固定值:drive#permission。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setProfilePhotoLink(String profilePhotoLink) 设置用户头像链接。 |
Parameters
Name | Description |
|---|---|
profilePhotoLink | 用户头像链接。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setRole(String role) 设置该权限授予的角色 ,取值为owner, writer, reader。 |
Parameters
Name | Description |
|---|---|
role | 设置该权限授予的角色 ,取值为owner, writer, reader。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setType(String type) 设置被授予人的类型,取值为user, anyone。 |
Parameters
Name | Description |
|---|---|
type | 被授予人的类型,取值为user, anyone。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |
Method |
|---|
public Permission setUserAccount(String userAccount) 设置用户“帐号”。 |
Parameters
Name | Description |
|---|---|
userAccount | 用户“帐号”。 |
Returns
Type | Description |
|---|---|
Permission | 返回Permission对象。 |