Class FederationBatchInfoService


  • @Component
    public class FederationBatchInfoService
    extends Object
    • Method Detail

      • save

        @Transactional
        public void save​(FederationBatchInfo federationBatchInfo)
        Persists the FederationBatchInfo instance. If the data of a particular federation batch already exists in the database, this federation batch is not persisted.
        Parameters:
        federationBatchInfo - must not contain null.
      • findByStatus

        public List<FederationBatchInfo> findByStatus​(FederationBatchStatus federationBatchStatus)
        Returns all batch information entries with a given status.
        Parameters:
        federationBatchStatus - the status the batch information entries should have.
        Returns:
        the list of batch information entries with the given status.
      • applyRetentionPolicy

        @Transactional
        public void applyRetentionPolicy​(int daysToRetain)
        Deletes all federation batch information entries which have a date that is older than the specified number of days.
        Parameters:
        daysToRetain - the number of days until which batch information will be retained.
        Throws:
        IllegalArgumentException - if daysToRetain is negative.
      • deleteForDate

        @Transactional
        public void deleteForDate​(LocalDate date)
        Deletes all federation batch information entries which have a specific date.
        Parameters:
        date - The date for which the batch information entries should be deleted.