@Component public class StorageFileDaoHelper extends Object
| Constructor and Description |
|---|
StorageFileDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
List<StorageFileEntity> |
createStorageFileEntitiesFromStorageFiles(StorageUnitEntity storageUnitEntity,
List<StorageFile> storageFiles)
Creates storage file entities from the list of storage files.
|
StorageFileEntity |
getStorageFileEntity(String storageName,
String filePath)
Retrieves storage file by storage name and file path.
|
public List<StorageFileEntity> createStorageFileEntitiesFromStorageFiles(StorageUnitEntity storageUnitEntity, List<StorageFile> storageFiles)
storageUnitEntity - the storage unit entitystorageFiles - the list of storage filespublic StorageFileEntity getStorageFileEntity(String storageName, String filePath) throws ObjectNotFoundException, IllegalArgumentException
storageName - the storage namefilePath - the file pathObjectNotFoundException - if the storage file doesn't existIllegalArgumentException - if more than one storage file matching the file path exist in the storageCopyright © 2017. All rights reserved.