Class BulkAddResourcesResponse

java.lang.Object
com.broadleafcommerce.asset.storage.provider.service.BulkAddResourcesResponse

public class BulkAddResourcesResponse extends Object
Object that is returned from multi-upload operations in StorageProvider, containing information about which resources succeeded and which ones failed.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • BulkAddResourcesResponse

      public BulkAddResourcesResponse(Map<String,String> givenFilenamesToSuccessfullyCreatedPaths, Map<String,Throwable> givenFilenamesToErrors)
  • Method Details

    • getGivenFilenamesToSuccessfullyCreatedPaths

      public Map<String,String> getGivenFilenamesToSuccessfullyCreatedPaths()
      Returns:
      a map containing information about the successfully created files. It maps the given filenames to the actual paths of the resources created in the storage provider.
    • getGivenFilenamesToErrors

      public Map<String,Throwable> getGivenFilenamesToErrors()
      Returns:
      a map of filenames to the errors they experienced when being processed
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object