public interface IBoxUsersManager extends IBoxResourceManager
Modifier and Type | Method and Description |
---|---|
BoxEmailAlias |
addEmailAlias(java.lang.String userId,
BoxEmailAliasRequestObject requestObject)
Adds a new email alias to the given user's account.
|
BoxUser |
createEnterpriseUser(BoxUserRequestObject requestObject)
Used to provision a new user in an enterprise.
|
void |
deleteEmailAlias(java.lang.String userId,
java.lang.String emailId,
BoxDefaultRequestObject requestObject)
Removes an email alias from a user.
|
java.util.List<BoxUser> |
getAllEnterpriseUser(BoxDefaultRequestObject requestObject,
java.lang.String filterTerm)
Get the list of all users for the Enterprise with their user_id, public_name, and login if the user is an enterprise admin.
|
BoxUser |
getCurrentUser(BoxDefaultRequestObject requestObject)
Get the current user's information.
|
java.util.List<BoxEmailAlias> |
getEmailAliases(java.lang.String userId,
BoxDefaultRequestObject requestObject)
Retrieves all email aliases for this user.
|
BoxFolder |
moveFolderToAnotherUser(java.lang.String userId,
java.lang.String folderId,
BoxSimpleUserRequestObject requestObject)
Moves all of the content from within one user's folder into a new folder in another user's account.
|
BoxUser |
updateUserInformaiton(java.lang.String userId,
BoxUserRequestObject requestObject)
Used to edit the settings and information about a user.
|
BoxUser |
updateUserPrimaryLogin(java.lang.String userId,
BoxUserUpdateLoginRequestObject requestObject)
Used to convert one of the user's confirmed email aliases into the user's primary login.
|
BoxUser getCurrentUser(BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.java.util.List<BoxUser> getAllEnterpriseUser(BoxDefaultRequestObject requestObject, java.lang.String filterTerm) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject
- request objectfilterTerm
- A string used to filter the results to only users starting with the filter_term in either the name or the login. Use null if don't want
filter.BoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxFolder moveFolderToAnotherUser(java.lang.String userId, java.lang.String folderId, BoxSimpleUserRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
userId
- id of the userfolderId
- id of the folder to be removedrequestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxUser createEnterpriseUser(BoxUserRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxUser updateUserInformaiton(java.lang.String userId, BoxUserRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
userId
- id of the user.requestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.java.util.List<BoxEmailAlias> getEmailAliases(java.lang.String userId, BoxDefaultRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException
userId
- id of userrequestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxEmailAlias addEmailAlias(java.lang.String userId, BoxEmailAliasRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException
userId
- id of userrequestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.void deleteEmailAlias(java.lang.String userId, java.lang.String emailId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
userId
- id of the useremailId
- id of the email alias to be removedrequestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxUser updateUserPrimaryLogin(java.lang.String userId, BoxUserUpdateLoginRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
userId
- id of the userrequestObject
- request objectBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.