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   * @author Kuali Student Team
39   * 
40   * This class exists purely to test the WebServiceAwareSpringBeanPostProcessor class.
41   */
42  public class FakeMessageServiceImpl  extends AbstractFakeService implements MessageService, Serializable {
43  
44  	/**
45  	 * 
46  	 */
47  	public FakeMessageServiceImpl() {
48  		// TODO Auto-generated constructor stub
49  	}
50  
51      @Override
52      public List<LocaleInfo> getLocales(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
53          return null;
54      }
55  
56      @Override
57      public List<String> getMessageGroupKeys(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
58          throw new UnsupportedOperationException("Not supported yet.");
59      }
60  
61      @Override
62      public MessageInfo getMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
63          return null;
64      }
65  
66      @Override
67      public List<MessageInfo> getMessagesByGroup(LocaleInfo localeInfo, String messageGroupKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
68          return null;
69      }
70  
71      @Override
72      public List<MessageInfo> getMessagesByGroups(LocaleInfo localeInfo, List<String> messageGroupKeys, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
73          return null;
74      }
75  
76      @Override
77      public MessageInfo updateMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, MessageInfo messageInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
78          return null;
79      }
80  
81      @Override
82      public StatusInfo deleteMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
83          return null;
84      }
85  
86      @Override
87      public StatusInfo createMessage(LocaleInfo localeInfo, String messageGroupKey, String messageKey, MessageInfo messageInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
88          return null;
89      }
90  
91      @Override
92      public List<ValidationResultInfo> validateProposal(String validationTypeKey, MessageInfo messageInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
93          return null;
94      }
95  
96      
97  
98  	@Override
99      public String toString() {
100 		return getClass().getName();
101     }
102 
103 	
104 }