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