001    /**
002     * Copyright 2005-2014 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.kns.service.impl;
017    
018    import org.kuali.rice.kew.api.WorkflowDocument;
019    import org.kuali.rice.kns.service.SessionDocumentService;
020    import org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase;
021    import org.kuali.rice.krad.UserSession;
022    
023    import java.sql.Timestamp;
024    
025    /**
026     * A {@link SessionDocumentService} implementation which does nothing.
027     *
028     * @author Kuali Rice Team (rice.collab@kuali.org)
029     *
030     * @deprecated Only used by KNS classes, use KRAD.
031     */
032    @Deprecated
033    public class NoOpSessionDocumentServiceImpl implements SessionDocumentService{
034    
035        @Override
036        public WorkflowDocument getDocumentFromSession(UserSession userSession, String docId) {
037            return null;
038        }
039    
040        @Override
041        public void addDocumentToUserSession(UserSession userSession, WorkflowDocument document) {
042    
043        }
044    
045        @Override
046        public void purgeDocumentForm(String documentNumber, String docFormKey, UserSession userSession, String ipAddress) {
047    
048        }
049    
050        @Override
051        public void purgeAllSessionDocuments(Timestamp expirationDate) {
052    
053        }
054    
055        @Override
056        public KualiDocumentFormBase getDocumentForm(String documentNumber, String docFormKey, UserSession userSession,
057                String ipAddress) {
058            return null;
059        }
060    
061        @Override
062        public void setDocumentForm(KualiDocumentFormBase form, UserSession userSession, String ipAddress) {
063    
064        }
065    }