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(ome.model.core.OriginalFile file)
Returns whether or not an OriginalFile exists on disk.
|
FileBuffer |
getFileBuffer(ome.model.core.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(ome.model.core.OriginalFile file, java.lang.String mode)
file
- public void removeFiles(java.util.List<java.lang.Long> fileIds)
fileIds
- - Long file keys to be deletedome.conditions.ResourceError
- If deletion fails.public boolean exists(ome.model.core.OriginalFile file)
file
- The original file metadata.