Skip to content
Snippets Groups Projects
Commit 47aa403d authored by Eirik Steira's avatar Eirik Steira
Browse files

Add javadoc to ImageAlbum.getDocument

parent c2ba2152
No related branches found
No related tags found
1 merge request!88Refactor/pdf creation
This commit is part of merge request !88. Comments created here will be created in the context of that merge request.
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment