Commit 9021f3b3 authored by Matija Obreza's avatar Matija Obreza
Browse files

Added #getFileBytes(RepositoryFile)

parent 89fc0f56
......@@ -87,6 +87,8 @@ public interface RepositoryService {
*/
byte[] getFileBytes(String repositoryPath, String filename) throws NoSuchRepositoryFileException;
byte[] getFileBytes(RepositoryFile repositoryFile) throws IOException;
/**
* List all files at the specified repository path.
*
......
......@@ -243,6 +243,11 @@ public class RepositoryServiceImpl implements RepositoryService, InitializingBea
return data;
}
@Override
public byte[] getFileBytes(RepositoryFile repositoryFile) throws IOException {
return bytesStorageService.get(repositoryFile.getPath(), repositoryFile.getFilename());
}
/*
* (non-Javadoc)
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment