View Javadoc

1   /*
2    * Copyright 2007 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.sys.web.struts;
17  
18  import java.util.HashMap;
19  import java.util.List;
20  import java.util.Map;
21  
22  import org.apache.struts.upload.FormFile;
23  import org.kuali.ole.sys.batch.BatchInputFileSetType;
24  import org.kuali.ole.sys.businessobject.BatchUpload;
25  import org.kuali.rice.core.api.util.KeyValue;
26  import org.kuali.rice.kns.web.struts.form.KualiForm;
27  
28  /**
29   * This class is the form used for the batch upload for file sets
30   */
31  public class KualiBatchInputFileSetForm extends KualiForm {
32      private Map<String, FormFile> uploadedFiles;
33  
34      private BatchUpload batchUpload;
35      private List<KeyValue> fileUserIdentifiers;
36  
37      private String titleKey;
38      private BatchInputFileSetType batchInputFileSetType;
39  
40      private String downloadFileType;
41      private List<KeyValue> fileTypes;
42  
43      /**
44       * Constructs a KualiBatchInputFileForm.java.
45       */
46      public KualiBatchInputFileSetForm() {
47          super();
48          this.batchUpload = new BatchUpload();
49          this.uploadedFiles = new HashMap<String, FormFile>();
50      }
51  
52      /**
53       * Gets the batchUpload attribute.
54       */
55      public BatchUpload getBatchUpload() {
56          return batchUpload;
57      }
58  
59      /**
60       * Sets the batchUpload attribute value.
61       */
62      public void setBatchUpload(BatchUpload batchUpload) {
63          this.batchUpload = batchUpload;
64      }
65  
66      /**
67       * Gets the userFiles attribute.
68       */
69      public List<KeyValue> getFileUserIdentifiers() {
70          return fileUserIdentifiers;
71      }
72  
73      /**
74       * Sets the userFiles attribute value.
75       */
76      public void setFileUserIdentifiers(List<KeyValue> fileUserIdentifiers) {
77          this.fileUserIdentifiers = fileUserIdentifiers;
78      }
79  
80      /**
81       * Gets the titleKey attribute.
82       */
83      public String getTitleKey() {
84          return titleKey;
85      }
86  
87      /**
88       * Sets the titleKey attribute value.
89       */
90      public void setTitleKey(String titleKey) {
91          this.titleKey = titleKey;
92      }
93  
94      /**
95       * Gets the batchInputFileSetType attribute.
96       * 
97       * @return Returns the batchInputFileSetType.
98       */
99      public BatchInputFileSetType getBatchInputFileSetType() {
100         return batchInputFileSetType;
101     }
102 
103     /**
104      * Sets the batchInputFileSetType attribute value.
105      * 
106      * @param batchInputFileSetType The batchInputFileSetType to set.
107      */
108     public void setBatchInputFileSetType(BatchInputFileSetType batchInputFileSetType) {
109         this.batchInputFileSetType = batchInputFileSetType;
110     }
111 
112     /**
113      * Gets the uploadedFiles attribute.
114      * 
115      * @return Returns the uploadedFiles.
116      */
117     public Map<String, FormFile> getUploadedFiles() {
118         return uploadedFiles;
119     }
120 
121     /**
122      * Sets the uploadedFiles attribute value.
123      * 
124      * @param uploadedFiles The uploadedFiles to set.
125      */
126     public void setUploadedFiles(Map<String, FormFile> uploadedFiles) {
127         this.uploadedFiles = uploadedFiles;
128     }
129 
130     /**
131      * Gets the fileAliases attribute.
132      * 
133      * @return Returns the fileAliases.
134      */
135     public List<KeyValue> getFileTypes() {
136         return fileTypes;
137     }
138 
139     /**
140      * Sets the fileAliases attribute value.
141      * 
142      * @param fileAliases The fileAliases to set.
143      */
144     public void setFileTypes(List<KeyValue> fileAliases) {
145         this.fileTypes = fileAliases;
146     }
147 
148     /**
149      * Gets the downloadFileAlias attribute.
150      * 
151      * @return Returns the downloadFileAlias.
152      */
153     public String getDownloadFileType() {
154         return downloadFileType;
155     }
156 
157     /**
158      * Sets the downloadFileAlias attribute value.
159      * 
160      * @param downloadFileAlias The downloadFileAlias to set.
161      */
162     public void setDownloadFileType(String downloadFileAlias) {
163         this.downloadFileType = downloadFileAlias;
164     }
165 }