001 /* 002 * Copyright 2011 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.kfs.integration.cab; 017 018 import java.util.ArrayList; 019 import java.util.Collections; 020 import java.util.List; 021 022 import org.apache.log4j.Logger; 023 import org.kuali.kfs.fp.businessobject.CapitalAssetInformation; 024 import org.kuali.kfs.integration.purap.ExternalPurApItem; 025 import org.kuali.kfs.integration.purap.ItemCapitalAsset; 026 import org.kuali.kfs.sys.businessobject.AccountingLine; 027 import org.kuali.kfs.sys.document.AccountingDocument; 028 import org.kuali.rice.kns.bo.DocumentHeader; 029 030 public class CapitalAssetBuilderModuleServiceNoOp implements CapitalAssetBuilderModuleService { 031 032 private Logger LOG = Logger.getLogger(getClass()); 033 034 public boolean doesAccountingLineFailAutomaticPurchaseOrderRules(AccountingLine accountingLine) { 035 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 036 return false; 037 } 038 039 public boolean doesDocumentFailAutomaticPurchaseOrderRules(AccountingDocument accountingDocument) { 040 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 041 return false; 042 } 043 044 public boolean doesItemNeedCapitalAsset(String itemTypeCode, List accountingLines) { 045 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 046 return false; 047 } 048 049 public List<CapitalAssetBuilderAssetTransactionType> getAllAssetTransactionTypes() { 050 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 051 return Collections.emptyList(); 052 } 053 054 public String getCurrentPurchaseOrderDocumentNumber(String camsDocumentNumber) { 055 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 056 return null; 057 } 058 059 public boolean hasCapitalAssetObjectSubType(AccountingDocument accountingDocument) { 060 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 061 return false; 062 } 063 064 public void notifyRouteStatusChange(DocumentHeader documentHeader) { 065 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 066 } 067 068 public boolean validateAccountsPayableData(AccountingDocument accountingDocument) { 069 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 070 return true; 071 } 072 073 public boolean validateAddItemCapitalAssetBusinessRules(ItemCapitalAsset asset) { 074 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 075 return true; 076 } 077 078 public boolean validateAllFieldRequirementsByChart(AccountingDocument accountingDocument) { 079 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 080 return true; 081 } 082 083 public boolean validateFinancialProcessingData(AccountingDocument accountingDocument, CapitalAssetInformation capitalAssetInformation) { 084 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 085 return true; 086 } 087 088 public boolean validateItemCapitalAssetWithErrors(String recurringPaymentTypeCode, ExternalPurApItem item, boolean apoCheck) { 089 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 090 return true; 091 } 092 093 public boolean validatePurchasingData(AccountingDocument accountingDocument) { 094 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 095 return true; 096 } 097 098 public boolean validatePurchasingObjectSubType(AccountingDocument accountingDocument) { 099 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 100 return true; 101 } 102 103 public boolean validateUpdateCAMSView(AccountingDocument accountingDocumen) { 104 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 105 return true; 106 } 107 108 public boolean warningObjectLevelCapital(AccountingDocument accountingDocument) { 109 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 110 return false; 111 } 112 113 public boolean isAssetTypeExisting(String assetTypeCode) { 114 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 115 return false; 116 } 117 118 }