Enable creating an API using Spring Web #5

Merged
niat8586 merged 39 commits from spring into develop 2024-11-06 11:23:29 +01:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 676e6258e3 - Show all commits

View File

@ -110,6 +110,8 @@ import se.su.dsv.scipro.nonworkperiod.NonWorkDayPeriodServiceImpl;
import se.su.dsv.scipro.notes.NoteServiceImpl; import se.su.dsv.scipro.notes.NoteServiceImpl;
import se.su.dsv.scipro.notifications.NotificationController; import se.su.dsv.scipro.notifications.NotificationController;
import se.su.dsv.scipro.notifications.NotificationControllerImpl; import se.su.dsv.scipro.notifications.NotificationControllerImpl;
import se.su.dsv.scipro.notifications.NotificationEventRepository;
import se.su.dsv.scipro.notifications.NotificationEventServiceImpl;
import se.su.dsv.scipro.notifications.NotificationService; import se.su.dsv.scipro.notifications.NotificationService;
import se.su.dsv.scipro.notifications.NotificationServiceImpl; import se.su.dsv.scipro.notifications.NotificationServiceImpl;
import se.su.dsv.scipro.notifications.Notifications; import se.su.dsv.scipro.notifications.Notifications;
@ -1023,4 +1025,9 @@ public class CoreConfig {
public CommentThreadServiceImpl commentThreadService(CommentThreadRepo commentThreadRepository) { public CommentThreadServiceImpl commentThreadService(CommentThreadRepo commentThreadRepository) {
return new CommentThreadServiceImpl(commentThreadRepository); return new CommentThreadServiceImpl(commentThreadRepository);
} }
@Bean
public NotificationEventServiceImpl notificationEventService(NotificationEventRepository notificationEventRepository) {
return new NotificationEventServiceImpl(notificationEventRepository);
}
} }

View File

@ -28,6 +28,7 @@ import se.su.dsv.scipro.match.FirstMeetingRepositoryImpl;
import se.su.dsv.scipro.match.IdeaRepositoryImpl; import se.su.dsv.scipro.match.IdeaRepositoryImpl;
import se.su.dsv.scipro.match.TargetRepositoryImpl; import se.su.dsv.scipro.match.TargetRepositoryImpl;
import se.su.dsv.scipro.milestones.MilestoneActivityTemplateRepositoryImpl; import se.su.dsv.scipro.milestones.MilestoneActivityTemplateRepositoryImpl;
import se.su.dsv.scipro.notifications.NotificationEventRepositoryImpl;
import se.su.dsv.scipro.peer.CommentThreadRepoImpl; import se.su.dsv.scipro.peer.CommentThreadRepoImpl;
import se.su.dsv.scipro.peer.PeerRequestRepositoryImpl; import se.su.dsv.scipro.peer.PeerRequestRepositoryImpl;
import se.su.dsv.scipro.peer.PeerReviewRepositoryImpl; import se.su.dsv.scipro.peer.PeerReviewRepositoryImpl;
@ -270,4 +271,9 @@ public class RepositoryConfiguration {
public ProjectFileRepositoryImpl projectFileRepository(Provider<EntityManager> em) { public ProjectFileRepositoryImpl projectFileRepository(Provider<EntityManager> em) {
return new ProjectFileRepositoryImpl(em); return new ProjectFileRepositoryImpl(em);
} }
@Bean
public NotificationEventRepositoryImpl notificationEventRepository(Provider<EntityManager> em) {
return new NotificationEventRepositoryImpl(em);
}
} }