public class BoxGroupsManagerImpl extends AbstractBoxResourceManager implements IBoxGroupsManager
| Constructor and Description |
|---|
BoxGroupsManagerImpl(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient) |
executeRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxGroupsManagerImpl(IBoxConfig config, IBoxResourceHub resourceHub, IBoxJSONParser parser, IBoxRequestAuth auth, IBoxRESTClient restClient)
public BoxCollection getAllGroups(BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagergetAllGroups in interface IBoxGroupsManagerBoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxGroup createGroup(BoxGroupRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagercreateGroup in interface IBoxGroupsManagerBoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxGroup createGroup(String name) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagercreateGroup in interface IBoxGroupsManagername - name of the group.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxGroup updateGroup(String groupId, BoxGroupRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagerupdateGroup in interface IBoxGroupsManagergroupId - id of the group.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public void deleteGroup(String groupId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagerdeleteGroup in interface IBoxGroupsManagergroupId - id of the group.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxCollection getMemberships(String groupId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagergetMemberships in interface IBoxGroupsManagergroupId - id of the group.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxGroupMembership getMembership(String membershipId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
getMembership in interface IBoxGroupsManagerBoxRestExceptionAuthFatalFailureExceptionBoxServerExceptionpublic BoxGroupMembership createMembership(BoxGroupMembershipRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
createMembership in interface IBoxGroupsManagerBoxRestExceptionAuthFatalFailureExceptionBoxServerExceptionpublic BoxGroupMembership createMembership(String groupId, String userId, String role) throws BoxRestException, AuthFatalFailureException, BoxServerException
createMembership in interface IBoxGroupsManagergroupId - id of the groupuserId - id of the user to be added.role - role of the user. e.g. BoxGroupMembership.ROLE_ADMINBoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxGroupMembership updateMembership(String membershipId, BoxGroupMembershipRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagerupdateMembership in interface IBoxGroupsManagermembershipId - id of the membership to be updated.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxGroupMembership updateMembership(String membershipId, String role) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagerupdateMembership in interface IBoxGroupsManagermembershipId - id of the membership.role - new role.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public void deleteMembership(String membershipId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagerdeleteMembership in interface IBoxGroupsManagermembershipId - id of the membership.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.public BoxCollection getAllCollaborations(String groupId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
IBoxGroupsManagergetAllCollaborations in interface IBoxGroupsManagergroupId - id of the group.BoxRestException - See BoxRestException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.Copyright © 2014. All Rights Reserved.