public class BoxEventsManager extends BoxResourceManager
Constructor and Description |
---|
BoxEventsManager(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRequestAuth auth,
IBoxRESTClient restClient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BoxCollection |
getEventOptions(BoxDefaultRequestObject requestObject)
Get Events options.
|
static java.util.List<BoxEvent> |
getEvents(BoxCollection collection)
Get comments from a collection.
|
BoxEventCollection |
getEvents(BoxEventRequestObject requestObject)
Get Events.
|
executeRequestWithNoResponseBody, getAuth, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, tryCastBoxItem, tryCastObject
public BoxEventsManager(IBoxConfig config, IBoxResourceHub resourceHub, IBoxJSONParser parser, IBoxRequestAuth auth, IBoxRESTClient restClient)
config
- BoxConfigresourceHub
- IResourceHubparser
- json parserauth
- auth for api callsrestClient
- REST client to make api calls.public BoxEventCollection getEvents(BoxEventRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
stream_position
- stream_type
- limit
- requestObject
- BoxRestException
BoxServerException
AuthFatalFailureException
public BoxCollection getEventOptions(BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject
- BoxRestException
BoxServerException
AuthFatalFailureException
public static java.util.List<BoxEvent> getEvents(BoxCollection collection)
collection
- collection