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.cam; 017 018 import java.util.List; 019 020 import org.apache.log4j.Logger; 021 import org.kuali.kfs.sys.businessobject.AccountingLine; 022 import org.kuali.kfs.sys.document.AccountingDocument; 023 import org.kuali.rice.kns.document.Document; 024 025 public class CapitalAssetManagementModuleServiceNoOp implements CapitalAssetManagementModuleService { 026 027 private Logger LOG = Logger.getLogger(getClass()); 028 029 public void deleteAssetLocks(String documentNumber, String lockingInformation) { 030 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 031 } 032 033 public void deleteDocumentAssetLocks(Document document) { 034 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 035 } 036 037 public void generateCapitalAssetLock(Document document, String documentTypeNames) { 038 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 039 } 040 041 public boolean isAssetLocked(List<Long> assetNumbers, String documentTypeName, String excludingDocumentNumber) { 042 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 043 return false; 044 } 045 046 public boolean isAssetLockedByCurrentDocument(String blockingDocumentNumber, String lockingInformation) { 047 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 048 return false; 049 } 050 051 public boolean isFpDocumentEligibleForAssetLock(AccountingDocument accountingDocument, String documentType) { 052 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 053 return false; 054 } 055 056 public boolean storeAssetLocks(List<Long> capitalAssetNumbers, String documentNumber, String documentType, String lockingInformation) { 057 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 058 return true; 059 } 060 061 }