public class BoxUser extends BoxCollaborator
Unless otherwise noted, the methods in this class can throw an unchecked BoxAPIException
(unchecked
meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error
handling for errors related to the Box REST API, you should capture this exception explicitly.
Modifier and Type | Class and Description |
---|---|
class |
BoxUser.Info
Contains information about a BoxUser.
|
static class |
BoxUser.Role
Enumerates the possible roles that a user can have within an enterprise.
|
static class |
BoxUser.Status
Enumerates the possible statuses that a user's account can have.
|
Constructor and Description |
---|
BoxUser(BoxAPIConnection api,
String id)
Constructs a BoxUser for a user with a given ID.
|
Modifier and Type | Method and Description |
---|---|
static BoxUser |
getCurrentUser(BoxAPIConnection api)
Gets the current user.
|
BoxUser.Info |
getInfo()
Gets information about this user.
|
equals, getAPI, getID, hashCode
public BoxUser(BoxAPIConnection api, String id)
api
- the API connection to be used by the user.id
- the ID of the user.public static BoxUser getCurrentUser(BoxAPIConnection api)
api
- the API connection of the current user.public BoxUser.Info getInfo()