01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.core.service.mock;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.core.bo.DocumentHeader;
21: import org.kuali.kfs.document.AccountingDocumentBase;
22:
23: /**
24: *
25: *
26: */
27: public class RuleMockDocument extends AccountingDocumentBase implements
28: MockDocumentInterface {
29: private MockDocument d;
30:
31: public RuleMockDocument() {
32: d = new MockDocument();
33: }
34:
35: public String getDocumentTitle() {
36: return "MockTransactionalDocument title";
37: }
38:
39: public final void populateDocumentForRouting() {
40: d.populateDocumentForRouting();
41: }
42:
43: public final void handleRouteStatusChange() {
44: d.handleRouteStatusChange();
45: }
46:
47: protected LinkedHashMap toStringMapper() {
48: return d.toStringMapper();
49: }
50:
51: public void setProcessed(boolean processed) {
52: d.setProcessed(processed);
53: }
54:
55: public boolean isProcessed() {
56: return d.isProcessed();
57: }
58:
59: public void setEventType(String eventType) {
60: d.setEventType(eventType);
61: }
62:
63: public String getEventType() {
64: return d.getEventType();
65: }
66:
67: public String getPrevEventType() {
68: return d.getPrevEventType();
69: }
70:
71: /**
72: * @see org.kuali.core.document.DocumentBase#getDocumentHeader()
73: */
74: @Override
75: public DocumentHeader getDocumentHeader() {
76: return d.getDocumentHeader();
77: }
78:
79: }
|