@Component public class StorageFileDaoHelper extends Object
| Constructor and Description |
|---|
StorageFileDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
List<StorageFileEntity> |
createStorageFileEntitiesFromStorageFiles(StorageUnitEntity storageUnitEntity,
List<StorageFile> storageFiles,
String directoryPath)
Creates storage file entities from the list of storage files.
|
StorageFileEntity |
getStorageFileEntity(StorageUnitEntity storageUnitEntity,
String filePath,
BusinessObjectDataKey businessObjectDataKey)
Retrieves storage file by storage unit entity and file path.
|
StorageFileEntity |
getStorageFileEntity(String storageName,
String filePath)
Retrieves storage file by storage name and file path.
|
public List<StorageFileEntity> createStorageFileEntitiesFromStorageFiles(StorageUnitEntity storageUnitEntity, List<StorageFile> storageFiles, String directoryPath)
storageUnitEntity - the storage unit entitystorageFiles - the list of storage filesdirectoryPath - the directory path for the storage filepublic 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 storagepublic StorageFileEntity getStorageFileEntity(StorageUnitEntity storageUnitEntity, String filePath, BusinessObjectDataKey businessObjectDataKey) throws ObjectNotFoundException, IllegalArgumentException
storageUnitEntity - the storage unit entityfilePath - the file pathbusinessObjectDataKey - the business object data keyObjectNotFoundException - if the storage file doesn't existIllegalArgumentException - if more than one storage file matching the file path exist in the storageCopyright © 2021. All rights reserved.