Class Info |
|---|
public class User extends GenericJson Drive 用户详情类。 |
Qualifier and Type |
Method Name and Description |
|---|---|
clone() 克隆一个User类对象。 |
|
String |
获取资源类型,固定值drive#user。 |
String |
获取用户显示名称。 |
Boolean |
getMe() 获取与当前请求用户是否同一人。 |
String |
获取用户权限资源Id。 |
String |
获取用户头像链接(默认不返回)。 |
String |
获取用户“帐号”。 |
set(String fieldName, Object value) 设置自定义属性及属性值。 |
|
setCategory(String category) 设置资源类型,固定值drive#user。 |
|
setDisplayName(String displayName) 设置用户显示名称。 |
|
setMe(Boolean me) 设置与当前请求用户是否同一人。 |
|
setPermissionId(String permissionId) 设置用户权限资源Id。 |
|
String |
setProfilePhotoLink(String profilePhotoLink) 设置用户头像链接。 |
setUserAccount(String userAccount) 设置用户“帐号”。 |
Method |
|---|
public String getCategory() 获取资源类型,固定值drive#user。 |
Returns
Type |
Description |
|---|---|
String |
返回资源类型,固定值drive#user。 |
Method |
|---|
public User setCategory(String category) 设置资源类型,固定值drive#user。 |
Parameters
Name |
Description |
|---|---|
category |
资源类型,固定值drive#user。 |
Returns
Type |
Description |
|---|---|
User |
返回一个User对象。 |
Method |
|---|
public String getDisplayName() 获取用户显示名称。 |
Returns
Type |
Description |
|---|---|
String |
用户显示名称。 |
Method |
|---|
public User setDisplayName(String displayName) 设置用户显示名称。 |
Parameters
Name |
Description |
|---|---|
displayName |
用户显示名称。 |
Returns
Type |
Description |
|---|---|
User |
返回一个User对象。 |
Method |
|---|
public Boolean getMe() 获取与当前请求用户是否同一人。 |
Returns
Type |
Description |
|---|---|
Boolean |
返回与当前请求用户是否同一人。 |
Method |
|---|
public User setMe(Boolean me) 设置与当前请求用户是否同一人。 |
Parameters
Name |
Description |
|---|---|
me |
是或否,标识与当前请求用户是否同一人。 |
Returns
Type |
Description |
|---|---|
User |
返回一个User对象。 |
Method |
|---|
public User set(String fieldName,Object value) 设置自定义属性及属性值。 |
Parameters
Name |
Description |
|---|---|
fieldName |
属性名称。 |
value |
属性值。 |
Returns
Type |
Description |
|---|---|
User |
返回一个User对象。 |
Method |
|---|
public String getPermissionId() 获取用户权限资源Id。 |
Returns
Type |
Description |
|---|---|
String |
返回用户权限资源Id。 |
Method |
|---|
public User setPermissionId(String permissionId) 设置用户权限资源Id。 |
Parameters
Name |
Description |
|---|---|
permissionId |
用户权限资源Id。 |
Returns
Type |
Description |
|---|---|
User |
返回一个User对象。 |
Method |
|---|
public String getProfilePhotoLink() 获取用户头像链接(默认不返回)。 |
Returns
Type |
Description |
|---|---|
String |
用户头像链接。 |
Method |
|---|
public User setProfilePhotoLink(String profilePhotoLink) 设置用户头像链接。 |
Parameters
Name |
Description |
|---|---|
profilePhotoLink |
用户头像链接。 |
Returns
Type |
Description |
|---|---|
User |
返回一个User对象。 |