View Javadoc
1   /*
2    * Copyright 2009 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.ole.integration.purap;
17  
18  import java.sql.Date;
19  import java.util.Collections;
20  import java.util.List;
21  
22  import org.apache.log4j.Logger;
23  
24  public class PurchasingAccountsPayableModuleServiceNoOp implements PurchasingAccountsPayableModuleService {
25  
26      private Logger LOG = Logger.getLogger(getClass()); 
27  
28      public void addAssignedAssetNumbers(Integer purchaseOrderNumber, String authorId, String noteText) {
29          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
30      }
31  
32      public List<PurchasingAccountsPayableSensitiveData> getAllSensitiveDatas() {
33          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
34          return Collections.emptyList();
35      }
36  
37      public String getB2BUrlString() {
38          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
39          return "";
40      }
41  
42      public String getPurchaseOrderInquiryUrl(Integer purchaseOrderNumber) {
43          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
44          return "";
45      }
46  
47      public PurchasingAccountsPayableSensitiveData getSensitiveDataByCode(String sensitiveDataCode) {
48          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
49          return null;
50      }
51  
52      public void handlePurchasingBatchCancels(String documentNumber, String financialSystemDocumentTypeCode, boolean primaryCancel, boolean disbursedPayment) {
53          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
54      }
55  
56      public void handlePurchasingBatchPaids(String documentNumber, String financialSystemDocumentTypeCode, Date processDate) {
57          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
58      }
59  
60      public boolean isPurchasingBatchDocument(String financialSystemDocumentTypeCode) {
61          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
62          return false;
63      }
64  
65  }