Skip to content

Commit

Permalink
Added: Email if project rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed Dec 18, 2024
1 parent bd64b2a commit 27ce5d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.1 - 2024-12-17]
## [0.0.1 - 2024-12-18]
### Added
- First version of the project
- Spring Application
Expand Down Expand Up @@ -177,3 +177,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- File Description for Frontend
- Fetch Project-States for dashboard site
- Primary and Test Mail Server
- Email if project rejected
1 change: 1 addition & 0 deletions src/main/java/de/samply/app/ProjectManagerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ public ResponseEntity<String> acceptProject(

@RoleConstraints(projectRoles = {ProjectRole.CREATOR, ProjectRole.PROJECT_MANAGER_ADMIN})
@StateConstraints(projectStates = {ProjectState.DRAFT, ProjectState.CREATED, ProjectState.DEVELOP, ProjectState.PILOT, ProjectState.FINAL})
@EmailSender(templateType = EmailTemplateType.PROJECT_REJECTED, recipients = {EmailRecipientType.PROJECT_ALL})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.PROJECT_STATE_MODULE)
@FrontendAction(action = ProjectManagerConst.REJECT_PROJECT_ACTION)
@PostMapping(value = ProjectManagerConst.REJECT_PROJECT)
Expand Down
1 change: 1 addition & 0 deletions src/main/java/de/samply/email/EmailTemplateType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public enum EmailTemplateType {
INVITATION,
NEW_PROJECT,
FINISHED_PROJECT,
PROJECT_REJECTED,
PROJECT_BRIDGEHEAD_ACCEPTED,
PROJECT_BRIDGEHEAD_REJECTED,
SCRIPT_ACCEPTED,
Expand Down

0 comments on commit 27ce5d5

Please sign in to comment.