public class OriginalFilesService extends AbstractFileSystemService
FileBuffers
.FILES_PATH, PIXELS_PATH, ROOT_DEFAULT, THUMBNAILS_PATH
Constructor and Description |
---|
OriginalFilesService(java.lang.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,
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
public OriginalFilesService(java.lang.String path)
path
- 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.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.