Class Info |
|---|
public class User extends GenericJson User details class. |
Qualifier and Type | Method Name and Description |
|---|---|
String | Obtains the resource type. The value is always drive#user. |
setCategory(String category) Sets the resource type. The value is always drive#user. | |
String | Obtains the user name that is displayed. |
setDisplayName(String displayName) Sets the user name that is displayed. | |
Boolean | getMe() Checks whether a user is the current requesting user. |
setMe(Boolean me) Sets whether a user is the current requesting user. | |
set(String fieldName, Object value) Sets a custom attribute and its value. | |
clone() Clones a User object. | |
String | Obtains the ID of the user's permission. |
setPermissionId(String permissionId) Sets the ID of the user's permission. | |
String | Obtains the link to the user's profile picture, which is not returned by default. |
String | setProfilePhotoLink(String profilePhotoLink) Sets the link to the user's profile picture. |
String | Obtains the account of the user. |
setUserAccount(String userAccount) Sets the account of the user. |
Method |
|---|
public String getCategory() Obtains the resource type. The value is always drive#user. |
Returns
Type | Description |
|---|---|
String | Resource type. The value is always drive#user. |
Method |
|---|
public User setCategory(String category) Sets the resource type. The value is always drive#user. |
Parameters
Name | Description |
|---|---|
category | Resource type. The value is always drive#user. |
Returns
Type | Description |
|---|---|
User | A User object. |
Method |
|---|
public String getDisplayName() Obtains the user name that is displayed. |
Returns
Type | Description |
|---|---|
String | Display name of the user. |
Method |
|---|
public User setDisplayName(String displayName) Sets the user name that is displayed. |
Parameters
Name | Description |
|---|---|
displayName | Display name of the user. |
Returns
Type | Description |
|---|---|
User | A User object. |
Method |
|---|
public Boolean getMe() Checks whether a user is the current requesting user. |
Returns
Type | Description |
|---|---|
Boolean | Whether a user is the current requesting user. |
Method |
|---|
public User setMe(Boolean me) Sets whether a user is the current requesting user. |
Parameters
Name | Description |
|---|---|
me | Indicates whether the user is the requesting user. |
Returns
Type | Description |
|---|---|
User | A User object. |
Method |
|---|
public User clone() Clones a User object. |
Returns
Type | Description |
|---|---|
User | A User object. |
Method |
|---|
public User set(String fieldName,Object value) Sets a custom attribute and its value. |
Parameters
Name | Description |
|---|---|
fieldName | Attribute name. |
value | Attribute value. |
Returns
Type | Description |
|---|---|
User | A User object. |
Method |
|---|
public String getPermissionId() Obtains the ID of the user's permission. |
Returns
Type | Description |
|---|---|
String | ID of the user's permission. |
Method |
|---|
public User setPermissionId(String permissionId) Sets the ID of the user's permission. |
Parameters
Name | Description |
|---|---|
permissionId | ID of the user's permission. |
Returns
Type | Description |
|---|---|
User | A User object. |
Method |
|---|
public String getProfilePhotoLink() Obtains the link to the user's profile picture, which is not returned by default. |
Returns
Type | Description |
|---|---|
String | Link to the user's profile picture. |
Method |
|---|
public User setProfilePhotoLink(String profilePhotoLink) Sets the link to the user's profile picture. |
Parameters
Name | Description |
|---|---|
profilePhotoLink | Link to the user's profile picture. |
Returns
Type | Description |
|---|---|
User | A User object. |