1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
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 }