public interface StorageFileDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
StorageFileEntity |
getStorageFileByStorageNameAndFilePath(String storageName,
String filePath)
Retrieves storage file by storage name and file path.
|
Long |
getStorageFileCount(String storageName,
String filePathPrefix)
Counts all storage files matching the file path prefix in the specified storage.
|
org.apache.commons.collections4.MultiValuedMap<Integer,String> |
getStorageFilePathsByStorageUnits(List<StorageUnitEntity> storageUnitEntities)
Retrieves a map of storage unit ids to their corresponding storage file paths.
|
List<String> |
getStorageFilesByStorageAndFilePathPrefix(String storageName,
String filePathPrefix)
Retrieves a sorted list of storage file paths matching S3 key prefix in the specified storage.
|
delete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshStorageFileEntity getStorageFileByStorageNameAndFilePath(String storageName, String filePath)
storageName - the storage name (case-insensitive)filePath - the file pathLong getStorageFileCount(String storageName, String filePathPrefix)
storageName - the storage name (case-insensitive)filePathPrefix - the file path prefix that file paths should matchList<String> getStorageFilesByStorageAndFilePathPrefix(String storageName, String filePathPrefix)
storageName - the storage name (case-insensitive)filePathPrefix - the file path prefix that file paths should matchorg.apache.commons.collections4.MultiValuedMap<Integer,String> getStorageFilePathsByStorageUnits(List<StorageUnitEntity> storageUnitEntities)
storageUnitEntities - the list of storage unit entitiesCopyright © 2017. All rights reserved.