@BoxResourceType(value="invite") public class BoxInvite extends BoxResource
Unless otherwise noted, the methods in this class can throw an unchecked BoxAPIException
(unchecked
meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error
handling for errors related to the Box REST API, you should capture this exception explicitly.
Modifier and Type | Class and Description |
---|---|
class |
BoxInvite.Info
Contains information about a BoxInvite.
|
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
INVITE_CREATION_URL_TEMPLATE
The URL template for invite creation requests.
|
static URLTemplate |
INVITE_URL_TEMPLATE
The URL template for invite retrieval requests.
|
Constructor and Description |
---|
BoxInvite(BoxAPIConnection api,
String id)
Constructs a BoxInvitee for an invite with a given ID.
|
Modifier and Type | Method and Description |
---|---|
BoxInvite.Info |
getInfo()
Gets information about this group membership.
|
static BoxInvite.Info |
inviteUserToEnterprise(BoxAPIConnection api,
String userLogin,
String enterpriseID)
Invite a user to an enterprise.
|
equals, getAPI, getID, getResourceType, hashCode
public static final URLTemplate INVITE_CREATION_URL_TEMPLATE
public static final URLTemplate INVITE_URL_TEMPLATE
getInfo()
public BoxInvite(BoxAPIConnection api, String id)
api
- the API connection to be used by the invite.id
- the ID of the invite.public static BoxInvite.Info inviteUserToEnterprise(BoxAPIConnection api, String userLogin, String enterpriseID)
api
- the API connection to use for the request.userLogin
- the login of the user to invite.enterpriseID
- the ID of the enterprise to invite the user to.public BoxInvite.Info getInfo()