View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.integration.purap;
20  
21  import java.sql.Date;
22  import java.util.Collections;
23  import java.util.List;
24  
25  import org.apache.log4j.Logger;
26  import org.kuali.rice.core.api.util.type.KualiDecimal;
27  
28  public class PurchasingAccountsPayableModuleServiceNoOp implements PurchasingAccountsPayableModuleService {
29  
30      private Logger LOG = Logger.getLogger(getClass());
31  
32      @Override
33      public void addAssignedAssetNumbers(Integer purchaseOrderNumber, String authorId, String noteText) {
34          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
35      }
36  
37      @Override
38      public List<PurchasingAccountsPayableSensitiveData> getAllSensitiveDatas() {
39          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
40          return Collections.emptyList();
41      }
42  
43      @Override
44      public String getB2BUrlString() {
45          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
46          return "";
47      }
48  
49      @Override
50      public String getPurchaseOrderInquiryUrl(Integer purchaseOrderNumber) {
51          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
52          return "";
53      }
54  
55      @Override
56      public PurchasingAccountsPayableSensitiveData getSensitiveDataByCode(String sensitiveDataCode) {
57          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
58          return null;
59      }
60  
61      @Override
62      public void handlePurchasingBatchCancels(String documentNumber, String financialSystemDocumentTypeCode, boolean primaryCancel, boolean disbursedPayment) {
63          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
64      }
65  
66      @Override
67      public void handlePurchasingBatchPaids(String documentNumber, String financialSystemDocumentTypeCode, Date processDate) {
68          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
69      }
70  
71      @Override
72      public boolean isPurchasingBatchDocument(String financialSystemDocumentTypeCode) {
73          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
74          return false;
75      }
76  
77      @Override
78      public KualiDecimal getTotalPaidAmountToRequisitions(List<String> documentNumbers) {
79          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
80          return null;
81      }
82  }