ITrackerServicesImpl.java

  1. package org.itracker.services.implementations;

  2. import org.itracker.services.*;

  3. /**
  4.  * Service layer is a bit messy. The are *Factories, which work mainly as data access objects,
  5.  * and *Handlers, that work as the service layer. It's messy because it was a straight EJB migration,
  6.  * and they were not refactored yet.
  7.  *
  8.  * @author ricardow
  9.  */


  10. public class ITrackerServicesImpl implements ITrackerServices {

  11.     private IssueService issueService;
  12.     private UserService userService;
  13.     private ProjectService projectService;
  14.     private ConfigurationService configurationService;
  15.     private ReportService reportService;
  16.     private EmailService emailService;
  17.     private NotificationService notificationService;

  18.     // Factories

  19.     public ITrackerServicesImpl(IssueService issueService,
  20.                                 UserService userService, ProjectService projectService,
  21.                                 ConfigurationService configurationService,
  22.                                 ReportService reportService, NotificationService notificationService, EmailService emailService) {
  23.         super();
  24.         this.issueService = issueService;
  25.         this.userService = userService;
  26.         this.projectService = projectService;
  27.         this.configurationService = configurationService;
  28.         this.reportService = reportService;
  29.         this.notificationService = notificationService;
  30.         this.emailService = emailService;
  31.     }

  32.     public IssueService getIssueService() {
  33.         return issueService;
  34.     }

  35.     public UserService getUserService() {
  36.         return userService;
  37.     }

  38.     public ProjectService getProjectService() {
  39.         return projectService;
  40.     }

  41.     public ReportService getReportService() {
  42.         return reportService;
  43.     }

  44.     public ConfigurationService getConfigurationService() {
  45.         return configurationService;
  46.     }

  47.     public EmailService getEmailService() {
  48.         return emailService;
  49.     }

  50.     public NotificationService getNotificationService() {

  51.         return this.notificationService;
  52.     }
  53. }