1 package org.gnomekr.potron.service;
2
3 import java.util.List;
4
5 import org.gnomekr.potron.data.Project;
6 import org.gnomekr.potron.data.Template;
7 import org.gnomekr.potron.data.Translation;
8 import org.gnomekr.potron.data.User;
9 import org.gnomekr.potron.statistics.StatusOverview;
10 import org.gnomekr.potron.statistics.TranslationStatus;
11 import org.gnomekr.potron.statistics.TranslatorStatus;
12 import org.gnomekr.potron.statistics.UserStatus;
13
14 /***
15 * IStatisticsManager.java
16 * @author Xavier Cho
17 * @version $Revision 1.1 $ $Date: 2005/07/22 07:25:50 $
18 */
19 public interface IStatisticsManager {
20
21 /***
22 * @param count
23 * @return
24 */
25 List<TranslatorStatus> getTopTranslators(int count);
26
27 /***
28 * @param count
29 * @param minimumEntries
30 * @return
31 */
32 List<User> getFastestTranslators(int count, int minimumEntries);
33
34 /***
35 * @param count
36 * @param minimumEntries
37 * @return
38 */
39 List<User> getSlowestTranslators(int count, int minimumEntries);
40
41 /***
42 * @param count
43 * @return
44 */
45 List<Project> getMostCompleteProjects(int count);
46
47 /***
48 * @param count
49 * @return
50 */
51 List<Project> getLeastCompleteProjects(int count);
52
53 /***
54 * @param count
55 * @return
56 */
57 List<Project> getMostWorkedOnProjects(int count);
58
59 /***
60 * @param count
61 * @return
62 */
63 List<Project> getLeastWorkedOnProjects(int count);
64
65 /***
66 * @param count
67 * @param projectId
68 * @return
69 */
70 List<Template> getMostCompleteTemplates(int count, String projectId);
71
72 /***
73 * @param count
74 * @param projectId
75 * @return
76 */
77 List<Template> getLeastCompleteTemplates(int count, String projectId);
78
79 /***
80 * @param count
81 * @param projectId
82 * @return
83 */
84 List<Template> getMostWorkedOnTemplates(int count, String projectId);
85
86 /***
87 * @param count
88 * @param projectId
89 * @return
90 */
91 List<Template> getLeastWorkedOnTemplates(int count, String projectId);
92
93 /***
94 * @param count
95 * @param projectId
96 * @return
97 */
98 List<Translation> getMostCompleteTranslations(int count, String projectId);
99
100 /***
101 * @param count
102 * @param projectId
103 * @return
104 */
105 List<Translation> getLeastCompleteTranslations(int count, String projectId);
106
107 /***
108 * @param count
109 * @param projectId
110 * @return
111 */
112 List<Translation> getMostWorkedOnTranslations(int count, String projectId);
113
114 /***
115 * @param count
116 * @param projectId
117 * @return
118 */
119 List<Translation> getLeastWorkedOnTranslations(int count, String projectId);
120
121 /***
122 * @param projectId
123 * @return
124 */
125 TranslationStatus getProjectStatus(String projectId);
126
127 /***
128 * @param templateId
129 * @return
130 */
131 TranslationStatus getTemplateStatus(long templateId);
132
133 /***
134 * @return
135 */
136 StatusOverview getStatusOverview();
137
138 /***
139 * @param translationId
140 * @return
141 */
142 TranslationStatus getTranslationStatus(long translationId);
143
144 /***
145 * @param userName
146 * @return
147 */
148 UserStatus getUserStatus(String userName);
149 }