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.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.ole.sys.document.OLEAccountingDocument;
28  import org.kuali.rice.krad.bo.DocumentHeader;
29  
30  public class CapitalAssetBuilderModuleServiceNoOp implements CapitalAssetBuilderModuleService {
31  
32      private Logger LOG = Logger.getLogger(getClass()); 
33      
34      public boolean doesAccountingLineFailAutomaticPurchaseOrderRules(AccountingLine accountingLine) {
35          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
36          return false;
37      }
38  
39      public boolean doesDocumentFailAutomaticPurchaseOrderRules(AccountingDocument accountingDocument) {
40          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
41          return false;
42      }
43      public boolean doesDocumentFailAutomaticPurchaseOrderRules(OLEAccountingDocument accountingDocument) {
44          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
45          return false;
46      }
47  
48      public boolean doesItemNeedCapitalAsset(String itemTypeCode, List accountingLines) {
49          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
50          return false;
51      }
52  
53      public List<CapitalAssetBuilderAssetTransactionType> getAllAssetTransactionTypes() {
54          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
55          return Collections.emptyList();
56      }
57  
58      public String getCurrentPurchaseOrderDocumentNumber(String camsDocumentNumber) {
59          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
60          return null;
61      }
62  
63      public boolean hasCapitalAssetObjectSubType(AccountingDocument accountingDocument) {
64          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
65          return false;
66      }
67  
68      public boolean hasCapitalAssetObjectSubType(AccountingLine accountingLine) {
69          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
70          return false;
71      }
72      
73      public void notifyRouteStatusChange(DocumentHeader documentHeader) {
74          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
75      }
76  
77      public boolean validateAccountsPayableData(AccountingDocument accountingDocument) {
78          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
79          return true;
80      }
81  
82      public boolean validateAddItemCapitalAssetBusinessRules(ItemCapitalAsset asset) {
83          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
84          return true;
85      }
86  
87      public boolean validateAllFieldRequirementsByChart(AccountingDocument accountingDocument) {
88          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
89          return true;
90      }
91  
92      public boolean validateAllFieldRequirementsByChart(OLEAccountingDocument accountingDocument) {
93          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
94          return true;
95      }
96  
97      public boolean validateFinancialProcessingData(AccountingDocument accountingDocument, CapitalAssetInformation capitalAssetInformation, int index) {
98          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
99          return true;
100     }
101 
102     public boolean validateItemCapitalAssetWithErrors(String recurringPaymentTypeCode, ExternalPurApItem item, boolean apoCheck) {
103         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
104         return true;
105     }
106 
107     public boolean validatePurchasingData(AccountingDocument accountingDocument) {
108         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
109         return true;
110     }
111     public boolean validatePurchasingData(OLEAccountingDocument accountingDocument) {
112         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
113         return true;
114     }
115 
116     public boolean validatePurchasingObjectSubType(AccountingDocument accountingDocument) {
117         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
118         return true;
119     }
120     public boolean validatePurchasingObjectSubType(OLEAccountingDocument accountingDocument) {
121         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
122         return true;
123     }
124 
125     public boolean validateUpdateCAMSView(AccountingDocument accountingDocumen) {
126         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
127         return true;
128     }
129     public boolean validateUpdateCAMSView(OLEAccountingDocument accountingDocumen) {
130         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
131         return true;
132     }
133 
134     public boolean warningObjectLevelCapital(AccountingDocument accountingDocument) {
135         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
136         return true;
137     }
138 
139     public boolean isAssetTypeExisting(String assetTypeCode) {
140         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
141         return false;
142     }
143 
144     //capital accounting lines validations called from fp documents side..
145     public boolean validateAllCapitalAccountingLinesProcessed(AccountingDocument accountingDocument) {
146         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
147         return true;
148     }
149     
150     public boolean validateTotalAmountMatch(AccountingDocument accountingDocument) {
151         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
152         return true;
153     }
154     
155     public boolean validateCapitlAssetsAmountToAccountingLineAmount(AccountingDocument accountingDocument) {
156         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
157         return true;
158     }
159     
160     public boolean validateCapitalAccountingLines(AccountingDocument accountingDocument) {
161         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
162         return true;
163     }
164     
165     public boolean markProcessedGLEntryLine(String documentNumber) {
166         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
167         return true;
168     }
169     
170     public boolean validateAssetTags(AccountingDocument accountingDocumen) {
171         LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
172         return true;
173     }
174 }