Class BoxEventLogsManager


  • public class BoxEventLogsManager
    extends Object
    Provides operations to read Box enterprise (admin) event logs.
    • Constructor Detail

      • 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 Detail

      • getEnterpriseEvents

        public List<com.box.sdk.BoxEvent> getEnterpriseEvents​(String position,
                                                              Date after,
                                                              Date before,
                                                              com.box.sdk.BoxEvent.Type... 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 be null in 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.