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.cg;
17  
18  import java.util.ArrayList;
19  import java.util.Collection;
20  import java.util.List;
21  
22  import org.apache.log4j.Logger;
23  import org.kuali.ole.coa.businessobject.Account;
24  import org.kuali.rice.kim.api.identity.Person;
25  
26  public class ContractsAndGrantsModuleServiceNoOp implements ContractsAndGrantsModuleService {
27  
28      private Logger LOG = Logger.getLogger(getClass()); 
29  
30      public List<Integer> getAllAccountReponsiblityIds() {
31          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
32          return new ArrayList<Integer>(0);
33      }
34  
35      public Person getProjectDirectorForAccount(String chartOfAccountsCode, String accountNumber) {
36          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
37          return null;
38      }
39  
40      public Person getProjectDirectorForAccount(Account account) {
41          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
42          return null;
43      }
44  
45      public boolean hasValidAccountReponsiblityIdIfNotNull(Account account) {
46          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
47          return true;
48      }
49  
50      public boolean isAwardedByFederalAgency(String chartOfAccountsCode, String accountNumber, Collection<String> federalAgencyTypeCodes) {
51          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
52          return false;
53      }
54  
55      //@Override
56      public List<String> getParentUnits(String unitNumber) {
57          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
58          return null;
59      }
60  
61      @Override
62      public String getProposalNumberForAccountAndProjectDirector(String chartOfAccountsCode, String accountNumber, String projectDirectorId) {
63          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
64          return null;
65      }
66  }