View Javadoc

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