View Javadoc
1   /**
2    * Copyright 2005-2015 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   * @deprecated Only used by KNS classes, use KRAD.
31   */
32  @Deprecated
33  public class NoOpSessionDocumentServiceImpl implements SessionDocumentService{
34  
35      @Override
36      public WorkflowDocument getDocumentFromSession(UserSession userSession, String docId) {
37          return null;
38      }
39  
40      @Override
41      public void addDocumentToUserSession(UserSession userSession, WorkflowDocument document) {
42  
43      }
44  
45      @Override
46      public void purgeDocumentForm(String documentNumber, String docFormKey, UserSession userSession, String ipAddress) {
47  
48      }
49  
50      @Override
51      public void purgeAllSessionDocuments(Timestamp expirationDate) {
52  
53      }
54  
55      @Override
56      public KualiDocumentFormBase getDocumentForm(String documentNumber, String docFormKey, UserSession userSession,
57              String ipAddress) {
58          return null;
59      }
60  
61      @Override
62      public void setDocumentForm(KualiDocumentFormBase form, UserSession userSession, String ipAddress) {
63  
64      }
65  }