@RequiresProject
@RequiresProjectUser
@RequestMapping("album-edit")
public String doEdit(@RequestParam(required = false) Long albumId, @WidgetAttribute Project project, @WidgetAttribute ProjectUser projectUser, Model model) {
//
Album album = new Album();
if(albumId==null) {
album.setProjectId(project.getId());
album.setCreatedById(projectUser.getId());
album.setModifiedById(projectUser.getId());
} else {
album = albumService.getAlbum(albumId);
}
model.addAttribute("album", album);
//