Rev 1306 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
90 | jmachado | 1 | package pt.estgp.estgweb.services.common; |
2 | |||
163 | jmachado | 3 | import pt.estgp.estgweb.services.announcements.AnnouncementsCommonServices; |
214 | jmachado | 4 | import pt.estgp.estgweb.services.announcements.TodoAnnouncementsCommonServices; |
808 | jmachado | 5 | import pt.estgp.estgweb.services.assessments.AssessmentsCommonServices; |
6 | import pt.estgp.estgweb.services.blogs.BlogPostsCommonServices; |
||
205 | jmachado | 7 | import pt.estgp.estgweb.services.blogs.BlogsCommonServices; |
808 | jmachado | 8 | import pt.estgp.estgweb.services.courses.CoursesCommonServices; |
205 | jmachado | 9 | import pt.estgp.estgweb.services.courseunits.CourseUnitsCommonServices; |
808 | jmachado | 10 | import pt.estgp.estgweb.services.email.EmailCommonServices; |
853 | jmachado | 11 | import pt.estgp.estgweb.services.processes.ProcessesCommonService; |
215 | jmachado | 12 | import pt.estgp.estgweb.services.profile.ProfileCommonServices; |
808 | jmachado | 13 | import pt.estgp.estgweb.services.reminders.RemindersCommonServices; |
455 | jmachado | 14 | import pt.estgp.estgweb.services.srusources.SruSourcesCommonServices; |
671 | jmachado | 15 | import pt.estgp.estgweb.services.surveys.SurveysCommonServices; |
163 | jmachado | 16 | |
90 | jmachado | 17 | /** |
18 | * @author Jorge Machado |
||
19 | * @date 24/Abr/2008 |
||
20 | * @time 15:00:27 |
||
21 | * @see pt.estgp.estgweb.services.common |
||
22 | */ |
||
23 | public enum ModuleEnum |
||
24 | { |
||
25 | |||
156 | jmachado | 26 | |
214 | jmachado | 27 | TodoAnnouncements("module.TodoAnnouncements", new TodoAnnouncementsCommonServices()), |
163 | jmachado | 28 | Announcements("module.Announcements", new AnnouncementsCommonServices()), |
165 | jmachado | 29 | Email("module.Email", new EmailCommonServices()), |
205 | jmachado | 30 | Reminders("module.Reminders", new RemindersCommonServices()), |
31 | Blogs("module.Blogs", new BlogsCommonServices()), |
||
32 | BlogPosts("module.BlogPosts", new BlogPostsCommonServices()), |
||
214 | jmachado | 33 | CourseUnits("module.CourseUnits", new CourseUnitsCommonServices()), |
215 | jmachado | 34 | Courses("module.Courses", new CoursesCommonServices()), |
455 | jmachado | 35 | Profile("module.Profile", new ProfileCommonServices()), |
169 | jmachado | 36 | // Questionarios("module.Qustionarios", new QuestionariosCommonServices()); |
671 | jmachado | 37 | SruSource("module.SruSource", new SruSourcesCommonServices()), |
38 | // Duarte Santos |
||
808 | jmachado | 39 | Surveys("module.Surveys", new SurveysCommonServices()), |
165 | jmachado | 40 | |
853 | jmachado | 41 | Processes("module.Processes", new ProcessesCommonService()), |
808 | jmachado | 42 | // Filipe Matos |
43 | Assessments("module.Assessments", new AssessmentsCommonServices()); |
||
163 | jmachado | 44 | // Events("module.Events",null), |
45 | // Blogs("module.Blogs",null), |
||
46 | // Proxy("module.Proxy",null); |
||
156 | jmachado | 47 | |
90 | jmachado | 48 | |
163 | jmachado | 49 | IModuleCommonServices moduleCommonServices; |
90 | jmachado | 50 | 1.5.0/docs/api/java/lang/String.html">String messageKey; |
51 | |||
52 | |||
163 | jmachado | 53 | private ModuleEnum(1.5.0/docs/api/java/lang/String.html">String messageKey, IModuleCommonServices moduleCommonServices) |
90 | jmachado | 54 | { |
55 | this.messageKey = messageKey; |
||
163 | jmachado | 56 | this.moduleCommonServices = moduleCommonServices; |
90 | jmachado | 57 | } |
58 | |||
59 | public static ModuleEnum parse(1.5.0/docs/api/java/lang/String.html">String messageKey) |
||
60 | { |
||
163 | jmachado | 61 | for (ModuleEnum module : values()) |
90 | jmachado | 62 | { |
163 | jmachado | 63 | if (messageKey.equals(module.getMessageKey())) |
90 | jmachado | 64 | return module; |
65 | } |
||
66 | return null; |
||
67 | } |
||
68 | |||
69 | public 1.5.0/docs/api/java/lang/String.html">String getMessageKey() |
||
70 | { |
||
71 | return messageKey; |
||
72 | } |
||
163 | jmachado | 73 | |
74 | public IModuleCommonServices getModuleCommonServices() |
||
90 | jmachado | 75 | { |
163 | jmachado | 76 | return moduleCommonServices; |
90 | jmachado | 77 | } |
78 | } |