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.
|
StorageFileEntity |
getStorageFileByStorageUnitEntityAndFilePath(StorageUnitEntity storageUnitEntity,
String filePath)
Retrieves storage file by storage unit entity 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> |
getStorageFilePathsByStorageUnitIds(List<Integer> storageUnitIds)
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 pathStorageFileEntity getStorageFileByStorageUnitEntityAndFilePath(StorageUnitEntity storageUnitEntity, String filePath)
storageUnitEntity - the storage unit entityfilePath - the file pathLong getStorageFileCount(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> getStorageFilePathsByStorageUnitIds(List<Integer> storageUnitIds)
storageUnitIds - the list of storage unit identifiersList<String> getStorageFilesByStorageAndFilePathPrefix(String storageName, String filePathPrefix)
storageName - the storage name (case-insensitive)filePathPrefix - the file path prefix that file paths should matchCopyright © 2019. All rights reserved.