1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.server.gwt;
17
18 import org.kuali.student.common.messages.dto.LocaleKeyList;
19 import org.kuali.student.common.messages.dto.Message;
20 import org.kuali.student.common.messages.dto.MessageGroupKeyList;
21 import org.kuali.student.common.messages.dto.MessageList;
22 import org.kuali.student.common.messages.service.MessageService;
23
24 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
25
26 public class MessagesRpcGwtServlet extends RemoteServiceServlet implements org.kuali.student.common.ui.client.service.MessagesRpcService {
27
28 private static final long serialVersionUID = 1L;
29
30 private MessageService serviceImpl;
31
32 @Override
33 public Message addMessage(Message messageInfo) {
34 return serviceImpl.addMessage(messageInfo);
35 }
36
37 @Override
38 public LocaleKeyList getLocales() {
39 return serviceImpl.getLocales();
40 }
41
42 @Override
43 public Message getMessage(String localeKey, String messageGroupKey, String messageKey) {
44 return serviceImpl.getMessage(localeKey, messageGroupKey, messageKey);
45 }
46
47 @Override
48 public MessageGroupKeyList getMessageGroups() {
49 return serviceImpl.getMessageGroups();
50 }
51
52 @Override
53 public MessageList getMessages(String localeKey, String messageGroupKey) {
54 return serviceImpl.getMessages(localeKey, messageGroupKey);
55 }
56
57 @Override
58 public MessageList getMessagesByGroups(String localeKey, MessageGroupKeyList messageGroupKeyList) {
59 return serviceImpl.getMessagesByGroups(localeKey, messageGroupKeyList);
60 }
61
62 @Override
63 public Message updateMessage(String localeKey, String messageGroupKey, String messageKey, Message messageInfo) {
64 return serviceImpl.updateMessage(localeKey, messageGroupKey, messageKey, messageInfo);
65 }
66
67 public MessageService getServiceImpl() {
68 return serviceImpl;
69 }
70
71 public void setServiceImpl(MessageService impl) {
72 this.serviceImpl = impl;
73 }
74
75 }