1 /*
2 * Copyright 2005 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.fp.document.web.struts;
17
18 import org.kuali.ole.fp.document.NonCheckDisbursementDocument;
19 import org.kuali.ole.sys.web.struts.KualiAccountingDocumentActionBase;
20 import org.kuali.rice.kew.api.exception.WorkflowException;
21 import org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase;
22
23
24 /**
25 * Action class for <code>{@link org.kuali.ole.fp.document.NonCheckDisbursementDocument}</code> It doesn't do anything
26 * because it doesn't need to.
27 */
28 public class NonCheckDisbursementAction extends KualiAccountingDocumentActionBase {
29
30 /**
31 * Override to set default bank code.
32 *
33 * @see org.kuali.ole.sys.web.struts.KualiAccountingDocumentActionBase#createDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)
34 */
35 @Override
36 protected void createDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException {
37 super.createDocument(kualiDocumentFormBase);
38
39 ((NonCheckDisbursementDocument) kualiDocumentFormBase.getDocument()).setDefaultBankCode();
40 }
41
42 }