Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Team 14 - IDATT1002
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eirik Steira
Team 14 - IDATT1002
Commits
47aa403d
Commit
47aa403d
authored
4 years ago
by
Eirik Steira
Browse files
Options
Downloads
Patches
Plain Diff
Add javadoc to ImageAlbum.getDocument
parent
c2ba2152
No related branches found
No related tags found
1 merge request
!88
Refactor/pdf creation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/NTNU/IDATT1002/service/ImageAlbumService.java
+9
-3
9 additions, 3 deletions
src/main/java/NTNU/IDATT1002/service/ImageAlbumService.java
with
9 additions
and
3 deletions
src/main/java/NTNU/IDATT1002/service/ImageAlbumService.java
+
9
−
3
View file @
47aa403d
...
...
@@ -106,9 +106,15 @@ public class ImageAlbumService {
return
createImageAlbum
(
title
,
description
,
user
,
tags
,
new
ArrayList
<>());
}
public
ImageAlbumDocument
getDocument
(
Long
currentAlbumId
)
{
ImageAlbum
imageAlbum
=
getImageAlbumById
(
currentAlbumId
)
/**
* Create and return a new document for the image album with the given id.
* The document is saved to the users dowloads folder.
*
* @param albumId the album id to get a document for
* @return the document created
*/
public
ImageAlbumDocument
getDocument
(
Long
albumId
)
{
ImageAlbum
imageAlbum
=
getImageAlbumById
(
albumId
)
.
orElseThrow
(
IllegalArgumentException:
:
new
);
String
destinationFile
=
String
.
format
(
"%s/downloads/%s.pdf"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment