public interface IBoxGroupsManager extends IBoxResourceManager
Modifier and Type | Method and Description |
---|---|
BoxGroup |
createGroup(BoxGroupRequestObject requestObject)
Create a group.
|
BoxGroup |
createGroup(java.lang.String name)
Create a group.
|
BoxGroupMembership |
createMembership(BoxGroupMembershipRequestObject requestObject) |
BoxGroupMembership |
createMembership(java.lang.String groupId,
java.lang.String userId,
java.lang.String role) |
void |
deleteGroup(java.lang.String groupId,
BoxDefaultRequestObject requestObject)
Delete a group.
|
void |
deleteMembership(java.lang.String membershipId,
BoxDefaultRequestObject requestObject)
Delete a membership.
|
BoxCollection |
getAllCollaborations(java.lang.String groupId,
BoxDefaultRequestObject requestObject)
Get all collaborations of this group.
|
BoxCollection |
getAllGroups(BoxDefaultRequestObject requestObject)
Get all groups.
|
BoxGroupMembership |
getMembership(java.lang.String membershipId,
BoxDefaultRequestObject requestObject) |
BoxCollection |
getMemberships(java.lang.String groupId,
BoxDefaultRequestObject requestObject)
Get memberships of a group.
|
BoxGroup |
updateGroup(java.lang.String groupId,
BoxGroupRequestObject requestObject)
Update group information.
|
BoxGroupMembership |
updateMembership(java.lang.String membershipId,
BoxGroupMembershipRequestObject requestObject)
update a membership.
|
BoxGroupMembership |
updateMembership(java.lang.String membershipId,
java.lang.String role)
Update role of a membership.
|
BoxCollection getAllGroups(BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
requestObject
- 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.BoxGroup createGroup(BoxGroupRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
requestObject
- 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.BoxGroup createGroup(java.lang.String name) throws BoxRestException, AuthFatalFailureException, BoxServerException
name
- name of the group.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.BoxGroup updateGroup(java.lang.String groupId, BoxGroupRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
groupId
- id of the group.requestObject
- 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.void deleteGroup(java.lang.String groupId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
groupId
- id of the group.requestObject
- 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.BoxCollection getMemberships(java.lang.String groupId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
groupId
- id of the group.requestObject
- 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.BoxGroupMembership getMembership(java.lang.String membershipId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
BoxGroupMembership createMembership(BoxGroupMembershipRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
BoxGroupMembership createMembership(java.lang.String groupId, java.lang.String userId, java.lang.String role) throws BoxRestException, AuthFatalFailureException, BoxServerException
groupId
- 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.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxGroupMembership updateMembership(java.lang.String membershipId, BoxGroupMembershipRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
membershipId
- id of the membership to be updated.requestObject
- 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.BoxGroupMembership updateMembership(java.lang.String membershipId, java.lang.String role) throws BoxRestException, AuthFatalFailureException, BoxServerException
membershipId
- id of the membership.role
- new role.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.void deleteMembership(java.lang.String membershipId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
membershipId
- id of the membership.requestObject
- 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.BoxCollection getAllCollaborations(java.lang.String groupId, BoxDefaultRequestObject requestObject) throws BoxRestException, AuthFatalFailureException, BoxServerException
groupId
- id of the group.requestObject
- 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.