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.cg; 017 018 import java.util.ArrayList; 019 import java.util.List; 020 021 import org.apache.log4j.Logger; 022 import org.kuali.kfs.coa.businessobject.Account; 023 import org.kuali.rice.kim.bo.Person; 024 025 public class ContractsAndGrantsModuleServiceNoOp implements ContractsAndGrantsModuleService { 026 027 private Logger LOG = Logger.getLogger(getClass()); 028 029 public List<Integer> getAllAccountReponsiblityIds() { 030 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 031 return new ArrayList<Integer>(0); 032 } 033 034 public Person getProjectDirectorForAccount(String chartOfAccountsCode, String accountNumber) { 035 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 036 return null; 037 } 038 039 public Person getProjectDirectorForAccount(Account account) { 040 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 041 return null; 042 } 043 044 public boolean hasValidAccountReponsiblityIdIfNotNull(Account account) { 045 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 046 return true; 047 } 048 049 public boolean isAwardedByFederalAgency(String chartOfAccountsCode, String accountNumber, List<String> federalAgencyTypeCodes) { 050 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 051 return false; 052 } 053 054 //@Override 055 public List<String> getParentUnits(String unitNumber) { 056 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 057 return null; 058 } 059 060 @Override 061 public String getProposalNumberForAccountAndProjectDirector(String chartOfAccountsCode, String accountNumber, String projectDirectorId) { 062 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." ); 063 return null; 064 } 065 }