View Javadoc

1   /*
2    * Copyright 2012 The Kuali Foundation
3    *
4    * Licensed under the the Educational Community License, Version 1.0
5    * (the "License"); you may not use this file except in compliance
6    * with the License.  You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.student.common.spring;
17  
18  import java.io.Serializable;
19  import java.util.List;
20  
21  
22  import org.kuali.student.r2.common.dto.ContextInfo;
23  import org.kuali.student.r2.common.dto.LocaleInfo;
24  import org.kuali.student.r2.common.dto.StatusInfo;
25  import org.kuali.student.r2.common.dto.ValidationResultInfo;
26  import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
27  import org.kuali.student.r2.common.exceptions.DoesNotExistException;
28  import org.kuali.student.r2.common.exceptions.InvalidParameterException;
29  import org.kuali.student.r2.common.exceptions.MissingParameterException;
30  import org.kuali.student.r2.common.exceptions.OperationFailedException;
31  import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
32  import org.kuali.student.r2.common.exceptions.ReadOnlyException;
33  import org.kuali.student.r2.common.exceptions.VersionMismatchException;
34  import org.kuali.student.r2.common.messages.dto.MessageInfo;
35  import org.kuali.student.r2.common.messages.service.MessageService;
36  
37  
38  /**
39   * @author Kuali Student Team
40   * 
41   * This class exists purely to test the WebServiceAwareSpringBeanPostProcessor class.
42   */
43  public class FakeMessageServiceImpl  
44      extends AbstractFakeService implements MessageService, Serializable {
45  
46      /**
47       * 
48       */
49      public FakeMessageServiceImpl() {
50          // TODO Auto-generated constructor stub
51      }
52      
53      @Override
54      public List<LocaleInfo> getLocales(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
55          return null;
56      }
57      
58      @Override
59      public List<String> getMessageGroupKeys(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
60          throw new UnsupportedOperationException("Not supported yet.");
61      }
62      
63      @Override
64      public MessageInfo getMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
65          return null;
66      }
67  
68      @Override
69      public List<MessageInfo> getMessagesByKeys(List<String> messageKeys, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
70          throw new UnsupportedOperationException("Not supported yet.");
71  
72      }
73  
74      @Override
75      public List<MessageInfo> getMessagesByGroup(LocaleInfo localeInfo, String messageGroupKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
76          return null;  //To change body of implemented methods use File | Settings | File Templates.
77      }
78      
79      @Override
80      public List<MessageInfo> getMessagesByGroups(LocaleInfo localeInfo, List<String> messageGroupKeys, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
81          return null;
82      }
83      
84      @Override
85      public List<ValidationResultInfo> validateMessage(String validationTypeKey, MessageInfo messageInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
86          return null;
87      }
88  
89      @Override
90      public StatusInfo createMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, MessageInfo messageInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
91          return null;
92      }
93      
94      @Override
95      public MessageInfo updateMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, MessageInfo messageInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
96          return null;
97      }
98      
99      @Override
100     public StatusInfo deleteMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
101         return null;
102     }
103     
104     @Override
105     public String toString() {
106         return getClass().getName();
107     }
108 }