public class BoxApiUser extends BoxApi
mBaseUploadUri, mBaseUri, mSession| Constructor and Description |
|---|
BoxApiUser(BoxSession session)
Constructs a BoxApiUser with the provided BoxSession
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getAvatarDownloadUrl(java.lang.String id)
Gets the URL for downloading the avatar of a user
|
BoxRequestsUser.CreateEnterpriseUser |
getCreateEnterpriseUserRequest(java.lang.String login,
java.lang.String name)
Gets a request that creates an enterprise user
The session provided must be associated with an enterprise admin user
|
BoxRequestsUser.GetUserInfo |
getCurrentUserInfoRequest()
Gets a request that gets information about the current user
|
BoxRequestsUser.DeleteEnterpriseUser |
getDeleteEnterpriseUserRequest(java.lang.String userId)
Gets a request that deletes an enterprise user
The session provided must be associated with an enterprise admin user
|
BoxRequestsFile.DownloadAvatar |
getDownloadAvatarRequest(java.io.File target,
java.lang.String userId)
Gets a request that downloads an avatar of the target user id.
|
BoxRequestsFile.DownloadFile |
getDownloadAvatarRequest(java.io.OutputStream outputStream,
java.lang.String userId)
Gets a request that downloads the given avatar to the provided outputStream.
|
BoxRequestsUser.GetEnterpriseUsers |
getEnterpriseUsersRequest()
Gets a request that gets all the users of an enterprise
The session provided must be associated with an enterprise admin user
|
BoxRequestsUser.GetUserInfo |
getUserInfoRequest(java.lang.String id)
Gets a request that gets information about a user
|
protected java.lang.String |
getUserInformationUrl(java.lang.String id)
Gets the URL for getting information of the current user
|
protected java.lang.String |
getUsersUrl()
Gets the URL for getting information of the current user
|
getBaseUploadUri, getBaseUripublic BoxApiUser(BoxSession session)
session - authenticated session to use with the BoxApiUserprotected java.lang.String getUsersUrl()
protected java.lang.String getAvatarDownloadUrl(java.lang.String id)
id - id of the userprotected java.lang.String getUserInformationUrl(java.lang.String id)
id - id of the userpublic BoxRequestsUser.GetUserInfo getCurrentUserInfoRequest()
public BoxRequestsUser.GetUserInfo getUserInfoRequest(java.lang.String id)
id - id of the user to get information onpublic BoxRequestsUser.GetEnterpriseUsers getEnterpriseUsersRequest()
public BoxRequestsUser.CreateEnterpriseUser getCreateEnterpriseUserRequest(java.lang.String login, java.lang.String name)
login - the login (email) of the user to createname - name of the user to createpublic BoxRequestsUser.DeleteEnterpriseUser getDeleteEnterpriseUserRequest(java.lang.String userId)
userId - id of the userpublic BoxRequestsFile.DownloadAvatar getDownloadAvatarRequest(java.io.File target, java.lang.String userId) throws java.io.IOException
target - target file to download to, target can be either a directory or a fileuserId - id of user to download avatar ofjava.io.IOException - throws FileNotFoundException if target file does not exist.public BoxRequestsFile.DownloadFile getDownloadAvatarRequest(java.io.OutputStream outputStream, java.lang.String userId)
outputStream - outputStream to write file contents to.userId - the file id to download.