Changeset ab49338 for src/main/java/it/finki/charitable/services
- Timestamp:
- 09/04/21 12:17:17 (3 years ago)
- Branches:
- master
- Children:
- 0f4f552
- Parents:
- 5306751
- Location:
- src/main/java/it/finki/charitable/services
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/charitable/services/DonationPostService.java
r5306751 rab49338 3 3 import it.finki.charitable.entities.AppUser; 4 4 import it.finki.charitable.entities.DonationPost; 5 import it.finki.charitable.entities.Moderator; 5 6 import it.finki.charitable.repository.DonationPostRepository; 6 7 import org.springframework.data.domain.Page; … … 45 46 } 46 47 48 public List<DonationPost> findAllByModerator(Moderator moderator) { 49 return donationPostRepository.findAllByModerator(moderator); 50 } 51 47 52 public void delete(DonationPost donationPost) { 48 53 donationPostRepository.delete(donationPost); -
src/main/java/it/finki/charitable/services/EmailService.java
r5306751 rab49338 40 40 message.setSubject(subject); 41 41 42 String text = "Sorry, your post hasn't been approved" + "\n" + 42 String text = "Sorry, your post hasn't been approved\n" + 43 "Moderator:\n" + description; 44 message.setText(text); 45 javaMailSender.send(message); 46 } 47 48 public void sendDeletionEmail(String to, String subject, String description) { 49 SimpleMailMessage message = new SimpleMailMessage(); 50 message.setTo(to); 51 message.setSubject(subject); 52 53 String text = "Sorry, your post has been deleted\n" + 43 54 "Moderator:\n" + description; 44 55 message.setText(text);
Note:
See TracChangeset
for help on using the changeset viewer.