Interface EventStatusManager


  • @Role
    @Deprecated(since="14.6-rc-1")
    public interface EventStatusManager
    Deprecated.
    use EventStore instead
    Handle the statuses for the events.
    Since:
    9.2RC1
    Version:
    $Id: e2611ac6daa5e0d3300b51e2a30ffba5278cc9c2 $
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void deleteAllForEntity​(Date startDate, String entityId)
      Deprecated.
      since 12.6, use EventStore.deleteEventStatuses(String, Date) instead
      default void deleteEventStatus​(org.xwiki.eventstream.EventStatus eventStatus)
      Deprecated.
      since 12.5RC1, use EventStore.deleteEventStatus(EventStatus) instead
      List<org.xwiki.eventstream.EventStatus> getEventStatus​(List<org.xwiki.eventstream.Event> events, List<String> entityIds)
      Deprecated.
      use EventStore.getEventStatuses(java.util.Collection, java.util.Collection) instead
      void saveEventStatus​(org.xwiki.eventstream.EventStatus eventStatus)
      Deprecated.
      since 12.3RC1, use EventStore.saveEventStatus(EventStatus) instead
    • Method Detail

      • getEventStatus

        @Deprecated(since="14.6-rc-1")
        List<org.xwiki.eventstream.EventStatus> getEventStatus​(List<org.xwiki.eventstream.Event> events,
                                                               List<String> entityIds)
                                                        throws Exception
        Deprecated.
        use EventStore.getEventStatuses(java.util.Collection, java.util.Collection) instead
        Get the list of statuses concerning the given events and the given entities.
        Parameters:
        events - a list of events
        entityIds - a list of ids of entities (users and groups)
        Returns:
        the list of statuses corresponding to each pair or event/entity
        Throws:
        Exception - if an error occurs
      • saveEventStatus

        @Deprecated
        void saveEventStatus​(org.xwiki.eventstream.EventStatus eventStatus)
                      throws Exception
        Deprecated.
        since 12.3RC1, use EventStore.saveEventStatus(EventStatus) instead
        Save in the storage the given status.
        Parameters:
        eventStatus - the status to save
        Throws:
        Exception - if an error occurs
      • deleteEventStatus

        @Deprecated
        default void deleteEventStatus​(org.xwiki.eventstream.EventStatus eventStatus)
                                throws Exception
        Deprecated.
        since 12.5RC1, use EventStore.deleteEventStatus(EventStatus) instead
        Delete from the storage the given status.
        Parameters:
        eventStatus - the status to save
        Throws:
        Exception - if an error occurs
        Since:
        12.5RC1
      • deleteAllForEntity

        @Deprecated
        default void deleteAllForEntity​(Date startDate,
                                        String entityId)
                                 throws Exception
        Deprecated.
        since 12.6, use EventStore.deleteEventStatuses(String, Date) instead
        Parameters:
        startDate - date before which to remove event status
        entityId - the id of the entity concerned by the status
        Throws:
        Exception - if an error occurs
        Since:
        12.1RC1