Commit 3727a96f authored by Matija Obreza's avatar Matija Obreza

Updated for changes in file-repository

parent a7a839af
......@@ -46,7 +46,7 @@ public interface InstituteFilesService {
ImageGallery createImageGallery(FaoInstitute institute, Accession accession);
RepositoryImage addImage(FaoInstitute institute, Accession accession, String originalFilename, String contentType, byte[] bytes) throws InvalidRepositoryPathException, InvalidRepositoryFileDataException;
RepositoryImage addImage(FaoInstitute institute, Accession accession, String originalFilename, String contentType, byte[] bytes) throws InvalidRepositoryPathException, InvalidRepositoryFileDataException, IOException;
RepositoryImage updateImage(FaoInstitute institute, Accession accession, RepositoryImage repositoryImage, String contentType, byte[] bytes) throws NoSuchRepositoryFileException, IOException;
......
......@@ -118,7 +118,7 @@ public class InstituteFilesServiceImpl implements InstituteFilesService {
@Override
@PreAuthorize("hasRole('ADMINISTRATOR') or hasPermission(#institute, 'WRITE') or hasPermission(#institute, 'CREATE')")
public RepositoryImage addImage(FaoInstitute institute, Accession accession, String originalFilename, String contentType, byte[] bytes)
throws InvalidRepositoryPathException, InvalidRepositoryFileDataException {
throws InvalidRepositoryPathException, InvalidRepositoryFileDataException, IOException {
return repositoryService.addImage(getGalleryPath(institute, accession), originalFilename, contentType, bytes, null);
}
......
Markdown is supported
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