Class BoxEventLogsManager
java.lang.Object
org.apache.camel.component.box.api.BoxEventLogsManager
Provides operations to read Box enterprise (admin) event logs.
-
Constructor Summary
ConstructorsConstructorDescriptionBoxEventLogsManager(com.box.sdk.BoxAPIConnection boxConnection) Create event logs manager to manage the event logs of Box connection's authenticated user. -
Method Summary
Modifier and TypeMethodDescriptionList<com.box.sdk.BoxEvent> getEnterpriseEvents(String position, Date after, Date before, com.box.sdk.BoxEvent.EventType... types) Create an event stream with optional starting initial position and add listener that will be notified when an event is received.
-
Constructor Details
-
BoxEventLogsManager
public BoxEventLogsManager(com.box.sdk.BoxAPIConnection boxConnection) Create event logs manager to manage the event logs of Box connection's authenticated user.- Parameters:
boxConnection- - Box connection to authenticated user account.
-
-
Method Details
-
getEnterpriseEvents
public List<com.box.sdk.BoxEvent> getEnterpriseEvents(String position, Date after, Date before, com.box.sdk.BoxEvent.EventType... types) Create an event stream with optional starting initial position and add listener that will be notified when an event is received.- Parameters:
position- - the starting position of the event stream. May benullin which case all events within bounds returned.after- - the lower bound on the timestamp of the events returned.before- - the upper bound on the timestamp of the events returned.types- - an optional list of event types to filter by.- Returns:
- A list of all the events that met the given criteria.
-