Class LordnTaskUtils


  • public final class LordnTaskUtils
    extends java.lang.Object
    Helper methods for creating tasks containing CSV line data in the lordn-sunrise and lordn-claims queues based on DomainBase changes.

    Note that, per the TMCH RFC, while the application-datetime data is optional (which we never send because there start-date sunrise has no applications), its presence in the header is still required.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void enqueueDomainBaseTask​(DomainBase domain)
      Enqueues a task in the LORDN queue representing a line of CSV for LORDN export.
      static java.lang.String getCsvLineForClaimsDomain​(DomainBase domain, org.joda.time.DateTime transactionTime)
      Returns the corresponding CSV LORDN line for a claims domain.
      static java.lang.String getCsvLineForSunriseDomain​(DomainBase domain, org.joda.time.DateTime transactionTime)
      Returns the corresponding CSV LORDN line for a sunrise domain.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enqueueDomainBaseTask

        public static void enqueueDomainBaseTask​(DomainBase domain)
        Enqueues a task in the LORDN queue representing a line of CSV for LORDN export.
      • getCsvLineForSunriseDomain

        public static java.lang.String getCsvLineForSunriseDomain​(DomainBase domain,
                                                                  org.joda.time.DateTime transactionTime)
        Returns the corresponding CSV LORDN line for a sunrise domain.
      • getCsvLineForClaimsDomain

        public static java.lang.String getCsvLineForClaimsDomain​(DomainBase domain,
                                                                 org.joda.time.DateTime transactionTime)
        Returns the corresponding CSV LORDN line for a claims domain.