Class BatchCompletionRecord

java.lang.Object
com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord

public class BatchCompletionRecord extends Object
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

    • BatchCompletionRecord

      public BatchCompletionRecord(String correlationId, BatchCompletionRecordStatus status)
      Creates a record that does not have a dedicated identifier within the resource tier (e.g. an embedded object)
      Parameters:
      correlationId - batch record correlation
      status - whether or not this was successful
    • BatchCompletionRecord

      public BatchCompletionRecord(String correlationId, BatchCompletionRecordStatus status, String resourceTierIdentifier)
    • BatchCompletionRecord

      public BatchCompletionRecord(String correlationId, BatchCompletionRecordStatus status, @Nullable String errorMessage, @Nullable String resourceTierIdentifier)
  • Method Details

    • getCorrelationId

      public String getCorrelationId()
      Which record was actually completed to map back to a record in the sent batch from the import process
    • getStatus

      public BatchCompletionRecordStatus getStatus()
      Status of the record
    • getErrorMessage

      @Nullable public String getErrorMessage()
      If status is BatchCompletionRecordStatus.ERROR, then this contains a message detailing what the problem was.
    • getResourceTierIdentifier

      @Nullable public String getResourceTierIdentifier()
      Gives the ability to, from the import service, map back a resource tier identifier from an item in the batch that was successfully (or unsuccessfully) persisted. All of the items within a batch do not necessarily need to have an identifier associated with them so this can be null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object