Interface AcknowledgmentDao

    • Method Detail

      • processAcks

        void processAcks​(java.util.Collection<OnmsAcknowledgment> acks)

        processAcks

        Parameters:
        acks - a Collection object.
      • findLatestAcks

        java.util.List<OnmsAcknowledgment> findLatestAcks​(java.util.Date from)

        findLatestAcks

        Finds the latest acknowledgement for each refId. The latest acknowledgement is selected based on the most recent ackTime (and highest Id in the case of multiple occuring at the same time).
        Parameters:
        from - limit results to acks created on or after
        Returns:
        the list of latest acks (empty list in the case of no acks found)
      • findLatestAckForRefId

        java.util.Optional<OnmsAcknowledgment> findLatestAckForRefId​(java.lang.Integer refId)

        findLatestAckForRefId

        Finds the latest acknowledgement for the given refId. The latest acknowledgement is selected based on the most recent ackTime (and highest Id in the case of multiple occurring at the same time).
        Parameters:
        refId - the refId to search for
        Returns:
        an optional containing the latest ack for the given refId or Optional.empty() if none found