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