Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
45
Issues
45
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
3727a96f
Commit
3727a96f
authored
May 04, 2016
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for changes in file-repository
parent
a7a839af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/org/genesys2/server/service/InstituteFilesService.java
...va/org/genesys2/server/service/InstituteFilesService.java
+1
-1
src/main/java/org/genesys2/server/service/impl/InstituteFilesServiceImpl.java
...nesys2/server/service/impl/InstituteFilesServiceImpl.java
+1
-1
No files found.
src/main/java/org/genesys2/server/service/InstituteFilesService.java
View file @
3727a96f
...
...
@@ -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
;
...
...
src/main/java/org/genesys2/server/service/impl/InstituteFilesServiceImpl.java
View file @
3727a96f
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment