Interface AcknowledgmentDao

    • Method Detail

      • findLatestAcks

        List<OnmsAcknowledgment> findLatestAcks​(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

        Optional<OnmsAcknowledgment> findLatestAckForRefId​(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