目录

User

Class Info

public class User extends GenericJson

User details class.

Public Constructor Summary

Constructor Name

User()

Constructs a User object.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getCategory()

Obtains the resource type. The value is always drive#user.

User

setCategory(String category)

Sets the resource type. The value is always drive#user.

String

getDisplayName()

Obtains the user name that is displayed.

User

setDisplayName(String displayName)

Sets the user name that is displayed.

Boolean

getMe()

Checks whether a user is the current requesting user.

User

setMe(Boolean me)

Sets whether a user is the current requesting user.

User

set(String fieldName, Object value)

Sets a custom attribute and its value.

User

clone()

Clones a User object.

String

getPermissionId()

Obtains the ID of the user's permission.

User

setPermissionId(String permissionId)

Sets the ID of the user's permission.

String

getProfilePhotoLink()

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

getUserAccount()

Obtains the account of the user.

User

setUserAccount(String userAccount)

Sets the account of the user.

Public Constructors

[h2]User

Constructor

User()

Constructs a User object.

Public Methods

[h2]getCategory

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.

[h2]setCategory

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.

[h2]getDisplayName

Method

public String getDisplayName()

Obtains the user name that is displayed.

Returns

Type

Description

String

Display name of the user.

[h2]setDisplayName

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.

[h2]getMe

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.

[h2]setMe

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.

[h2]clone

Method

public User clone()

Clones a User object.

Returns

Type

Description

User

A User object.

[h2]set

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.

[h2]getPermissionId

Method

public String getPermissionId()

Obtains the ID of the user's permission.

Returns

Type

Description

String

ID of the user's permission.

[h2]setPermissionId

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.

[h2]getProfilePhotoLink

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.

[h2]setProfilePhotoLink

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.

[h2]getUserAccount

Method

public String getUserAccount()

Obtains the account of the user.

Returns

Type

Description

String

Account of the user.

[h2]setUserAccount

Method

public User setUserAccount(String userAccount)

Sets the account of the user.

Parameters

Name

Description

userAccount

Account of the user.

Returns

Type

Description

User

A User object.