Class DefaultStorageService.ZipExtractionResult
java.lang.Object
com.broadleafcommerce.asset.service.DefaultStorageService.ZipExtractionResult
- Enclosing class:
- DefaultStorageService
A simple object holding information about the results of extracting the contents of a zip
file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAll individual files within the zip will be extracted into temporaryFileswithintemporaryDirectoryFilesWereExtractedToand placed into this map.Any directories found within the zip will be built intoFoldersand placed into this map.When individual files are extracted (filesByNormalizedPath), they will all be placed into a new temporary directory.inthashCode()voidsetFilesByNormalizedPath(Map<String, File> filesByNormalizedPath) All individual files within the zip will be extracted into temporaryFileswithintemporaryDirectoryFilesWereExtractedToand placed into this map.voidsetFoldersByNormalizedPath(Map<String, Folder> foldersByNormalizedPath) Any directories found within the zip will be built intoFoldersand placed into this map.voidsetTemporaryDirectoryFilesWereExtractedTo(File temporaryDirectoryFilesWereExtractedTo) When individual files are extracted (filesByNormalizedPath), they will all be placed into a new temporary directory.toString()
-
Constructor Details
-
ZipExtractionResult
public ZipExtractionResult()
-
-
Method Details
-
getFoldersByNormalizedPath
Any directories found within the zip will be built intoFoldersand placed into this map. Keys in this map are the original paths of the directories after being cleaned and normalized. -
getFilesByNormalizedPath
All individual files within the zip will be extracted into temporaryFileswithintemporaryDirectoryFilesWereExtractedToand placed into this map. Keys in this map are the original paths of the files after being cleaned and normalized. -
getTemporaryDirectoryFilesWereExtractedTo
When individual files are extracted (filesByNormalizedPath), they will all be placed into a new temporary directory. This holds aFilepointing to that directory. Useful for being able to quickly delete all extracted contents. -
setFoldersByNormalizedPath
Any directories found within the zip will be built intoFoldersand placed into this map. Keys in this map are the original paths of the directories after being cleaned and normalized. -
setFilesByNormalizedPath
All individual files within the zip will be extracted into temporaryFileswithintemporaryDirectoryFilesWereExtractedToand placed into this map. Keys in this map are the original paths of the files after being cleaned and normalized. -
setTemporaryDirectoryFilesWereExtractedTo
When individual files are extracted (filesByNormalizedPath), they will all be placed into a new temporary directory. This holds aFilepointing to that directory. Useful for being able to quickly delete all extracted contents. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-