Class DefaultStorageService.ZipExtractionResult

java.lang.Object
com.broadleafcommerce.asset.service.DefaultStorageService.ZipExtractionResult
Enclosing class:
DefaultStorageService

public static class DefaultStorageService.ZipExtractionResult extends Object
A simple object holding information about the results of extracting the contents of a zip file.
  • Constructor Details

    • ZipExtractionResult

      public ZipExtractionResult()
  • Method Details

    • getFoldersByNormalizedPath

      public Map<String,Folder> getFoldersByNormalizedPath()
      Any directories found within the zip will be built into Folders and placed into this map. Keys in this map are the original paths of the directories after being cleaned and normalized.
    • getFilesByNormalizedPath

      public Map<String,File> getFilesByNormalizedPath()
      All individual files within the zip will be extracted into temporary Files within temporaryDirectoryFilesWereExtractedTo and placed into this map. Keys in this map are the original paths of the files after being cleaned and normalized.
    • getTemporaryDirectoryFilesWereExtractedTo

      public File getTemporaryDirectoryFilesWereExtractedTo()
      When individual files are extracted (filesByNormalizedPath), they will all be placed into a new temporary directory. This holds a File pointing to that directory. Useful for being able to quickly delete all extracted contents.
    • setFoldersByNormalizedPath

      public void setFoldersByNormalizedPath(Map<String,Folder> foldersByNormalizedPath)
      Any directories found within the zip will be built into Folders and placed into this map. Keys in this map are the original paths of the directories after being cleaned and normalized.
    • setFilesByNormalizedPath

      public void setFilesByNormalizedPath(Map<String,File> filesByNormalizedPath)
      All individual files within the zip will be extracted into temporary Files within temporaryDirectoryFilesWereExtractedTo and placed into this map. Keys in this map are the original paths of the files after being cleaned and normalized.
    • setTemporaryDirectoryFilesWereExtractedTo

      public void setTemporaryDirectoryFilesWereExtractedTo(File temporaryDirectoryFilesWereExtractedTo)
      When individual files are extracted (filesByNormalizedPath), they will all be placed into a new temporary directory. This holds a File pointing to that directory. Useful for being able to quickly delete all extracted contents.
    • 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