Commit 22b8384c authored by Matija Obreza's avatar Matija Obreza
Browse files

Update due to file-repository-0.8-SNAPSHOT change

parent 02da7540
......@@ -109,7 +109,7 @@ public class InstituteFilesServiceImpl implements InstituteFilesService {
LOG.warn(repositoryFile.getPath() + "!=" + getGalleryPath(institute, accession));
throw new ResourceNotFoundException("No such thing");
return this.repositoryService.updateMetadata(repositoryFile.getUuid(), imageData);
return this.repositoryService.updateImageMetadata(repositoryFile.getUuid(), imageData);
......@@ -129,7 +129,7 @@ public class InstituteFilesServiceImpl implements InstituteFilesService {
@PreAuthorize("hasRole('ADMINISTRATOR') or hasPermission(#institute, 'WRITE') or hasPermission(#institute, 'CREATE')")
public RepositoryImage updateImage(FaoInstitute institute, Accession accession, RepositoryImage repositoryImage, String contentType, byte[] data)
throws NoSuchRepositoryFileException, IOException {
return repositoryService.updateBytes(repositoryImage, contentType, data);
return repositoryService.updateImageBytes(repositoryImage, contentType, data);
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