@BoxResourceType(value="file_version_retention") public class BoxFileVersionRetention extends BoxResource
Unless otherwise noted, the methods in this class can throw an unchecked {@link 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 |
BoxFileVersionRetention.Info
Contains information about the retention policy.
|
static class |
BoxFileVersionRetention.QueryFilter
Represents possible query filters for "Get File Version Retentions" function.
|
Modifier and Type | Field and Description |
---|---|
static URLTemplate |
ALL_RETENTIONS_URL_TEMPLATE
The URL template used for operation with file version retentions.
|
static URLTemplate |
RETENTION_URL_TEMPLATE |
Constructor and Description |
---|
BoxFileVersionRetention(BoxAPIConnection api,
String id)
Constructs a BoxFileVersionRetention for a resource with a given ID.
|
Modifier and Type | Method and Description |
---|---|
static Iterable<BoxFileVersionRetention.Info> |
getAll(BoxAPIConnection api,
String... fields)
Retrieves all file version retentions.
|
BoxFileVersionRetention.Info |
getInfo(String... fields) |
static Iterable<BoxFileVersionRetention.Info> |
getRetentions(BoxAPIConnection api,
BoxFileVersionRetention.QueryFilter filter,
String... fields)
Retrieves all file version retentions matching given filters as an Iterable.
|
equals, getAPI, getID, getResourceType, hashCode
public static final URLTemplate RETENTION_URL_TEMPLATE
getInfo(String...)
public static final URLTemplate ALL_RETENTIONS_URL_TEMPLATE
public BoxFileVersionRetention(BoxAPIConnection api, String id)
api
- the API connection to be used by the resource.id
- the ID of the resource.public static Iterable<BoxFileVersionRetention.Info> getAll(BoxAPIConnection api, String... fields)
api
- the API connection to be used by the resource.fields
- the fields to retrieve.public static Iterable<BoxFileVersionRetention.Info> getRetentions(BoxAPIConnection api, BoxFileVersionRetention.QueryFilter filter, String... fields)
api
- the API connection to be used by the resource.filter
- filters for the query stored in QueryFilter object.fields
- the fields to retrieve.public BoxFileVersionRetention.Info getInfo(String... fields)
fields
- the fields to retrieve.