@BoxResourceType(value="collaboration_whitelist_exempt_target") public class BoxCollaborationWhitelistExemptTarget 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 |
BoxCollaborationWhitelistExemptTarget.Info
Contains information about a BoxCollaborationWhitelistExemptTarget.
|
| Modifier and Type | Field and Description |
|---|---|
static URLTemplate |
COLLABORATION_WHITELIST_EXEMPT_TARGET_ENTRIES_URL_TEMPLATE
Collaboration Whitelist Exempt Target Entries URL Template.
|
static URLTemplate |
COLLABORATION_WHITELIST_EXEMPT_TARGET_ENTRY_URL_TEMPLATE
Collaboration Whitelist Exempt Target Entries URL Template with given ID.
|
| Constructor and Description |
|---|
BoxCollaborationWhitelistExemptTarget(BoxAPIConnection api,
String id)
Constructs a BoxCollaborationWhitelistExemptTarget for a collaboration whitelist with a give ID.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxCollaborationWhitelistExemptTarget.Info |
create(BoxAPIConnection api,
String userID)
Creates a collaboration whitelist for a Box User with a given ID.
|
void |
delete()
Deletes this collaboration whitelist entry for user.
|
static Iterable<BoxCollaborationWhitelistExemptTarget.Info> |
getAll(BoxAPIConnection api,
int limit,
String... fields)
Returns all the collaboration whitelisting for user with specified filters.
|
static Iterable<BoxCollaborationWhitelistExemptTarget.Info> |
getAll(BoxAPIConnection api,
String... fields)
Returns all the collaboration whitelisting for user with default limit set to 100.
|
BoxCollaborationWhitelistExemptTarget.Info |
getInfo()
Retrieves information for a collaboration whitelist for a given whitelist ID.
|
equals, getAPI, getID, getResourceType, hashCodepublic static final URLTemplate COLLABORATION_WHITELIST_EXEMPT_TARGET_ENTRIES_URL_TEMPLATE
public static final URLTemplate COLLABORATION_WHITELIST_EXEMPT_TARGET_ENTRY_URL_TEMPLATE
public BoxCollaborationWhitelistExemptTarget(BoxAPIConnection api, String id)
api - the API connection to be used by the collaboration whitelist.id - the ID of the collaboration whitelist.public static BoxCollaborationWhitelistExemptTarget.Info create(BoxAPIConnection api, String userID)
api - the API connection to be used by the collaboration whitelist.userID - the ID of the Box User to add to the collaboration whitelist.public BoxCollaborationWhitelistExemptTarget.Info getInfo()
BoxCollaborationWhitelistExemptTarget.public static Iterable<BoxCollaborationWhitelistExemptTarget.Info> getAll(BoxAPIConnection api, String... fields)
api - the API connection to be use by the resource.fields - the fields to retrieve.public static Iterable<BoxCollaborationWhitelistExemptTarget.Info> getAll(BoxAPIConnection api, int limit, String... fields)
api - the API connection to be used by the resource.limit - the number of collaboration whitelists to retrieve.fields - the fields to retrieve.public void delete()