Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Formula Team Management
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Jitka Viceníková
Formula Team Management
Merge requests
!51
An error occurred while fetching the assigned milestone of the selected merge_request.
Thymeleaf
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Thymeleaf
mailing
into
develop
Overview
0
Commits
6
Pipelines
3
Changes
2
Merged
Michal Badin
requested to merge
mailing
into
develop
1 year ago
Overview
0
Commits
6
Pipelines
3
Changes
2
Expand
0
0
Merge request reports
Viewing commit
17d24444
Prev
Next
Show latest version
2 files
+
70
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
17d24444
fix(new-component-email): Added email template
· 17d24444
Michal Badin
authored
1 year ago
notification/src/main/java/cz/muni/pa165/service/NotificationService.java
+
9
−
5
Options
@@ -38,12 +38,16 @@ public class NotificationService {
public
ConfirmationDto
notifyNewComponent
(
CarComponentNotificationDto
carComponentNotificationDto
)
{
var
c
=
carComponentNotificationDto
.
getCarComponent
();
var
subject
=
"New component: "
+
c
.
getInformation
();
var
text
=
"New component was added to Formula team management core.\n"
+
"\nType: "
+
c
.
getComponentType
()
+
"\nInformation: "
+
c
.
getInformation
()
+
"\nWeight: "
+
c
.
getWeight
();
return
sendEmail
(
subject
,
text
,
carComponentNotificationDto
.
getReceivers
());
Context
ctx
=
new
Context
();
ctx
.
setVariable
(
"id"
,
c
.
getId
());
ctx
.
setVariable
(
"type"
,
c
.
getComponentType
());
ctx
.
setVariable
(
"info"
,
c
.
getInformation
());
ctx
.
setVariable
(
"weight"
,
c
.
getWeight
());
var
htmlContent
=
templateEngine
.
process
(
"new-component-email"
,
ctx
);
return
sendEmail
(
subject
,
htmlContent
,
carComponentNotificationDto
.
getReceivers
());
}
public
ConfirmationDto
notifyNewApplication
(
ApplicationNotificationDto
applicationNotificationDto
)
{
Loading