Class AcknowledgmentDaoHibernate

    • Constructor Detail

      • AcknowledgmentDaoHibernate

        public AcknowledgmentDaoHibernate()

        Constructor for AcknowledgmentDaoHibernate.

    • Method Detail

      • processAcks

        @Transactional(readOnly=false)
        public void processAcks​(java.util.Collection<OnmsAcknowledgment> acks)

        processAcks

        Specified by:
        processAcks in interface AcknowledgmentDao
        Parameters:
        acks - a Collection object.
      • findLatestAcks

        @Transactional
        public java.util.List<OnmsAcknowledgment> findLatestAcks​(java.util.Date from)
        Description copied from interface: AcknowledgmentDao

        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).
        Specified by:
        findLatestAcks in interface AcknowledgmentDao
        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

        @Transactional
        public java.util.Optional<OnmsAcknowledgment> findLatestAckForRefId​(java.lang.Integer refId)
        Description copied from interface: AcknowledgmentDao

        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).
        Specified by:
        findLatestAckForRefId in interface AcknowledgmentDao
        Parameters:
        refId - the refId to search for
        Returns:
        an optional containing the latest ack for the given refId or Optional.empty() if none found