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.cam;
17  
18  import java.util.List;
19  
20  import org.apache.log4j.Logger;
21  import org.kuali.ole.sys.document.AccountingDocument;
22  import org.kuali.rice.krad.document.Document;
23  
24  public class CapitalAssetManagementModuleServiceNoOp implements CapitalAssetManagementModuleService {
25  
26      private Logger LOG = Logger.getLogger(getClass()); 
27      
28      public void deleteAssetLocks(String documentNumber, String lockingInformation) {
29          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
30      }
31  
32      public void deleteDocumentAssetLocks(Document document) {
33          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
34      }
35  
36      public void generateCapitalAssetLock(Document document, String documentTypeNames) {
37          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
38      }
39  
40      public boolean isAssetLocked(List<Long> assetNumbers, String documentTypeName, String excludingDocumentNumber) {
41          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
42          return false;
43      }
44  
45      public boolean isAssetLockedByCurrentDocument(String blockingDocumentNumber, String lockingInformation) {
46          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
47          return false;
48      }
49  
50      public boolean isFpDocumentEligibleForAssetLock(AccountingDocument accountingDocument, String documentType) {
51          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
52          return false;
53      }
54  
55      public boolean storeAssetLocks(List<Long> capitalAssetNumbers, String documentNumber, String documentType, String lockingInformation) {
56          LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
57          return true;
58      }
59  
60  }