View Javadoc
1   package org.itracker.services.implementations;
2   
3   import org.itracker.services.*;
4   
5   /**
6    * Service layer is a bit messy. The are *Factories, which work mainly as data access objects,
7    * and *Handlers, that work as the service layer. It's messy because it was a straight EJB migration,
8    * and they were not refactored yet.
9    *
10   * @author ricardow
11   */
12  
13  
14  public class ITrackerServicesImpl implements ITrackerServices {
15  
16      private IssueService issueService;
17      private UserService userService;
18      private ProjectService projectService;
19      private ConfigurationService configurationService;
20      private ReportService reportService;
21      private EmailService emailService;
22      private NotificationService notificationService;
23  
24      // Factories
25  
26      public ITrackerServicesImpl(IssueService issueService,
27                                  UserService userService, ProjectService projectService,
28                                  ConfigurationService configurationService,
29                                  ReportService reportService, NotificationService notificationService, EmailService emailService) {
30          super();
31          this.issueService = issueService;
32          this.userService = userService;
33          this.projectService = projectService;
34          this.configurationService = configurationService;
35          this.reportService = reportService;
36          this.notificationService = notificationService;
37          this.emailService = emailService;
38      }
39  
40      public IssueService getIssueService() {
41          return issueService;
42      }
43  
44      public UserService getUserService() {
45          return userService;
46      }
47  
48      public ProjectService getProjectService() {
49          return projectService;
50      }
51  
52      public ReportService getReportService() {
53          return reportService;
54      }
55  
56      public ConfigurationService getConfigurationService() {
57          return configurationService;
58      }
59  
60      public EmailService getEmailService() {
61          return emailService;
62      }
63  
64      public NotificationService getNotificationService() {
65  
66          return this.notificationService;
67      }
68  }