public final class BoxUsersManagerImpl extends AbstractBoxResourceManager implements IBoxUsersManager
| Constructor and Description |
|---|
BoxUsersManagerImpl(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoxEmailAlias |
addEmailAlias(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(String userId,
String emailId,
BoxDefaultRequestObject requestObject)
Removes an email alias from a user.
|
void |
deleteEnterpriseUser(String userId,
BoxUserDeleteRequestObject requestObject)
Used to delete a user in an enterprise.
|
List<BoxUser> |
getAllEnterpriseUser(BoxDefaultRequestObject requestObject,
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.
|
static List<BoxEmailAlias> |
getEmailAliases(BoxCollection collection)
Deprecated.
|
List<BoxEmailAlias> |
getEmailAliases(String userId,
BoxDefaultRequestObject requestObject)
Retrieves all email aliases for this user.
|
static List<BoxUser> |
getUsers(BoxCollection collection)
Deprecated.
|
BoxFolder |
moveFolderToAnotherUser(String userId,
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(String userId,
BoxUserRequestObject requestObject)
Used to edit the settings and information about a user.
|
BoxUser |
updateUserPrimaryLogin(String userId,
BoxUserUpdateLoginRequestObject requestObject)
Used to convert one of the user's confirmed email aliases into the user's primary login.
|
executeRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxUsersManagerImpl(IBoxConfig config, IBoxResourceHub resourceHub, IBoxJSONParser parser, IBoxRequestAuth auth, IBoxRESTClient restClient)
config - ConfigresourceHub - IResourceHubparser - json parserauth - auth for api callsrestClient - REST client to make api calls.public BoxUser getCurrentUser(BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagergetCurrentUser in interface IBoxUsersManagerrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public List<BoxUser> getAllEnterpriseUser(BoxDefaultRequestObject requestObject, String filterTerm) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagergetAllEnterpriseUser in interface IBoxUsersManagerrequestObject - 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 BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxFolder moveFolderToAnotherUser(String userId, String folderId, BoxSimpleUserRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagermoveFolderToAnotherUser in interface IBoxUsersManageruserId - id of the userfolderId - id of the folder to be removedrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxUser createEnterpriseUser(BoxUserRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagercreateEnterpriseUser in interface IBoxUsersManagerrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxUser updateUserInformaiton(String userId, BoxUserRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagerupdateUserInformaiton in interface IBoxUsersManageruserId - id of the user.requestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public void deleteEnterpriseUser(String userId, BoxUserDeleteRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagerdeleteEnterpriseUser in interface IBoxUsersManageruserId - id of the user.BoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public List<BoxEmailAlias> getEmailAliases(String userId, BoxDefaultRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException
IBoxUsersManagergetEmailAliases in interface IBoxUsersManageruserId - id of userrequestObject - request objectBoxServerException - See BoxServerException for more info.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxEmailAlias addEmailAlias(String userId, BoxEmailAliasRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException
IBoxUsersManageraddEmailAlias in interface IBoxUsersManageruserId - id of userrequestObject - request objectBoxServerException - See BoxServerException for more info.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public void deleteEmailAlias(String userId, String emailId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagerdeleteEmailAlias in interface IBoxUsersManageruserId - id of the useremailId - id of the email alias to be removedrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.public BoxUser updateUserPrimaryLogin(String userId, BoxUserUpdateLoginRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
IBoxUsersManagerupdateUserPrimaryLogin in interface IBoxUsersManageruserId - id of the userrequestObject - request objectBoxRestException - See BoxRestException for more info.BoxServerException - See BoxServerException for more info.AuthFatalFailureException - See AuthFatalFailureException for more info.@Deprecated public static List<BoxUser> getUsers(BoxCollection collection)
collection - collection@Deprecated public static List<BoxEmailAlias> getEmailAliases(BoxCollection collection)
collection - collectionCopyright © 2014. All Rights Reserved.