View Javadoc

1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.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.rice.kns.service.impl;
17  
18  import org.kuali.rice.kew.api.WorkflowDocument;
19  import org.kuali.rice.kns.service.SessionDocumentService;
20  import org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase;
21  import org.kuali.rice.krad.UserSession;
22  
23  import java.sql.Timestamp;
24  
25  /**
26   * A {@link SessionDocumentService} implementation which does nothing.
27   *
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   */
30  public class NoOpSessionDocumentServiceImpl implements SessionDocumentService{
31  
32      @Override
33      public WorkflowDocument getDocumentFromSession(UserSession userSession, String docId) {
34          return null;
35      }
36  
37      @Override
38      public void addDocumentToUserSession(UserSession userSession, WorkflowDocument document) {
39  
40      }
41  
42      @Override
43      public void purgeDocumentForm(String documentNumber, String docFormKey, UserSession userSession, String ipAddress) {
44  
45      }
46  
47      @Override
48      public void purgeAllSessionDocuments(Timestamp expirationDate) {
49  
50      }
51  
52      @Override
53      public KualiDocumentFormBase getDocumentForm(String documentNumber, String docFormKey, UserSession userSession,
54              String ipAddress) {
55          return null;
56      }
57  
58      @Override
59      public void setDocumentForm(KualiDocumentFormBase form, UserSession userSession, String ipAddress) {
60  
61      }
62  }