1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.integration.cab;
17
18 import java.util.Collections;
19 import java.util.List;
20
21 import org.apache.log4j.Logger;
22 import org.kuali.ole.fp.businessobject.CapitalAssetInformation;
23 import org.kuali.ole.integration.purap.ExternalPurApItem;
24 import org.kuali.ole.integration.purap.ItemCapitalAsset;
25 import org.kuali.ole.sys.businessobject.AccountingLine;
26 import org.kuali.ole.sys.document.AccountingDocument;
27 import org.kuali.rice.krad.bo.DocumentHeader;
28
29 public class CapitalAssetBuilderModuleServiceNoOp implements CapitalAssetBuilderModuleService {
30
31 private Logger LOG = Logger.getLogger(getClass());
32
33 public boolean doesAccountingLineFailAutomaticPurchaseOrderRules(AccountingLine accountingLine) {
34 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
35 return false;
36 }
37
38 public boolean doesDocumentFailAutomaticPurchaseOrderRules(AccountingDocument accountingDocument) {
39 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
40 return false;
41 }
42
43 public boolean doesItemNeedCapitalAsset(String itemTypeCode, List accountingLines) {
44 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
45 return false;
46 }
47
48 public List<CapitalAssetBuilderAssetTransactionType> getAllAssetTransactionTypes() {
49 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
50 return Collections.emptyList();
51 }
52
53 public String getCurrentPurchaseOrderDocumentNumber(String camsDocumentNumber) {
54 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
55 return null;
56 }
57
58 public boolean hasCapitalAssetObjectSubType(AccountingDocument accountingDocument) {
59 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
60 return false;
61 }
62
63 public boolean hasCapitalAssetObjectSubType(AccountingLine accountingLine) {
64 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
65 return false;
66 }
67
68 public void notifyRouteStatusChange(DocumentHeader documentHeader) {
69 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
70 }
71
72 public boolean validateAccountsPayableData(AccountingDocument accountingDocument) {
73 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
74 return true;
75 }
76
77 public boolean validateAddItemCapitalAssetBusinessRules(ItemCapitalAsset asset) {
78 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
79 return true;
80 }
81
82 public boolean validateAllFieldRequirementsByChart(AccountingDocument accountingDocument) {
83 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
84 return true;
85 }
86
87 public boolean validateFinancialProcessingData(AccountingDocument accountingDocument, CapitalAssetInformation capitalAssetInformation, int index) {
88 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
89 return true;
90 }
91
92 public boolean validateItemCapitalAssetWithErrors(String recurringPaymentTypeCode, ExternalPurApItem item, boolean apoCheck) {
93 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
94 return true;
95 }
96
97 public boolean validatePurchasingData(AccountingDocument accountingDocument) {
98 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
99 return true;
100 }
101
102 public boolean validatePurchasingObjectSubType(AccountingDocument accountingDocument) {
103 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
104 return true;
105 }
106
107 public boolean validateUpdateCAMSView(AccountingDocument accountingDocumen) {
108 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
109 return true;
110 }
111
112 public boolean warningObjectLevelCapital(AccountingDocument accountingDocument) {
113 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
114 return true;
115 }
116
117 public boolean isAssetTypeExisting(String assetTypeCode) {
118 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
119 return false;
120 }
121
122
123 public boolean validateAllCapitalAccountingLinesProcessed(AccountingDocument accountingDocument) {
124 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
125 return true;
126 }
127
128 public boolean validateTotalAmountMatch(AccountingDocument accountingDocument) {
129 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
130 return true;
131 }
132
133 public boolean validateCapitlAssetsAmountToAccountingLineAmount(AccountingDocument accountingDocument) {
134 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
135 return true;
136 }
137
138 public boolean validateCapitalAccountingLines(AccountingDocument accountingDocument) {
139 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
140 return true;
141 }
142
143 public boolean markProcessedGLEntryLine(String documentNumber) {
144 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
145 return true;
146 }
147
148 public boolean validateAssetTags(AccountingDocument accountingDocumen) {
149 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
150 return true;
151 }
152 }