public class OriginalFilesService extends AbstractFileSystemService
FileBuffers
.FILES_PATH, PIXELS_PATH, ROOT_DEFAULT, THUMBNAILS_PATH
Constructor and Description |
---|
OriginalFilesService(java.lang.String path)
Deprecated.
|
OriginalFilesService(java.lang.String path,
boolean isReadOnlyRepo) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(OriginalFile file)
Returns whether or not an OriginalFile exists on disk.
|
FileBuffer |
getFileBuffer(OriginalFile file,
java.lang.String mode)
Returns FileBuffer based on OriginalFile path
|
void |
removeFiles(java.util.List<java.lang.Long> fileIds)
Removes files from data repository based on a parameterized List of
Long file ids
|
createSubpath, getFilesPath, getPixelsDirectory, getPixelsPath, getThumbnailPath
@Deprecated public OriginalFilesService(java.lang.String path)
path
- public OriginalFilesService(java.lang.String path, boolean isReadOnlyRepo)
public FileBuffer getFileBuffer(OriginalFile file, java.lang.String mode)
file
- public void removeFiles(java.util.List<java.lang.Long> fileIds)
fileIds
- - Long file keys to be deletedResourceError
- If deletion fails.public boolean exists(OriginalFile file)
file
- The original file metadata.
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.