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.kfs.web.struts.form;
17:
18: import java.util.List;
19:
20: import org.apache.struts.upload.FormFile;
21: import org.kuali.core.web.struts.form.KualiForm;
22: import org.kuali.core.web.ui.KeyLabelPair;
23: import org.kuali.kfs.bo.BatchUpload;
24:
25: /**
26: * Struts action form for the batch upload screen.
27: */
28: public class KualiBatchInputFileForm extends KualiForm {
29: private FormFile uploadFile;
30: private BatchUpload batchUpload;
31: private List<KeyLabelPair> userFiles;
32:
33: private String titleKey;
34:
35: /**
36: * Constructs a KualiBatchInputFileForm.java.
37: */
38: public KualiBatchInputFileForm() {
39: super ();
40: this .batchUpload = new BatchUpload();
41: }
42:
43: /**
44: * Gets the batchUpload attribute.
45: */
46: public BatchUpload getBatchUpload() {
47: return batchUpload;
48: }
49:
50: /**
51: * Sets the batchUpload attribute value.
52: */
53: public void setBatchUpload(BatchUpload batchUpload) {
54: this .batchUpload = batchUpload;
55: }
56:
57: /**
58: * Gets the uploadFile attribute.
59: */
60: public FormFile getUploadFile() {
61: return uploadFile;
62: }
63:
64: /**
65: * Sets the uploadFile attribute value.
66: */
67: public void setUploadFile(FormFile uploadFile) {
68: this .uploadFile = uploadFile;
69: }
70:
71: /**
72: * Gets the userFiles attribute.
73: */
74: public List<KeyLabelPair> getUserFiles() {
75: return userFiles;
76: }
77:
78: /**
79: * Sets the userFiles attribute value.
80: */
81: public void setUserFiles(List<KeyLabelPair> userFiles) {
82: this .userFiles = userFiles;
83: }
84:
85: /**
86: * Gets the titleKey attribute.
87: */
88: public String getTitleKey() {
89: return titleKey;
90: }
91:
92: /**
93: * Sets the titleKey attribute value.
94: */
95: public void setTitleKey(String titleKey) {
96: this.titleKey = titleKey;
97: }
98:
99: }
|