001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali.kfs.web.struts.form;
017:
018: import java.util.HashMap;
019: import java.util.List;
020: import java.util.Map;
021:
022: import org.apache.struts.upload.FormFile;
023: import org.kuali.core.web.struts.form.KualiForm;
024: import org.kuali.core.web.ui.KeyLabelPair;
025: import org.kuali.kfs.batch.BatchInputFileSetType;
026: import org.kuali.kfs.bo.BatchUpload;
027:
028: /**
029: * This class is the form used for the batch upload for file sets
030: */
031: public class KualiBatchInputFileSetForm extends KualiForm {
032: private Map<String, FormFile> uploadedFiles;
033:
034: private BatchUpload batchUpload;
035: private List<KeyLabelPair> fileUserIdentifiers;
036:
037: private String titleKey;
038: private BatchInputFileSetType batchInputFileSetType;
039: private boolean supressDoneFileCreation;
040:
041: private String downloadFileType;
042: private List<KeyLabelPair> fileTypes;
043:
044: /**
045: * Constructs a KualiBatchInputFileForm.java.
046: */
047: public KualiBatchInputFileSetForm() {
048: super ();
049: this .batchUpload = new BatchUpload();
050: this .uploadedFiles = new HashMap<String, FormFile>();
051: this .supressDoneFileCreation = false;
052: }
053:
054: /**
055: * Gets the batchUpload attribute.
056: */
057: public BatchUpload getBatchUpload() {
058: return batchUpload;
059: }
060:
061: /**
062: * Sets the batchUpload attribute value.
063: */
064: public void setBatchUpload(BatchUpload batchUpload) {
065: this .batchUpload = batchUpload;
066: }
067:
068: /**
069: * Gets the userFiles attribute.
070: */
071: public List<KeyLabelPair> getFileUserIdentifiers() {
072: return fileUserIdentifiers;
073: }
074:
075: /**
076: * Sets the userFiles attribute value.
077: */
078: public void setFileUserIdentifiers(
079: List<KeyLabelPair> fileUserIdentifiers) {
080: this .fileUserIdentifiers = fileUserIdentifiers;
081: }
082:
083: /**
084: * Gets the titleKey attribute.
085: */
086: public String getTitleKey() {
087: return titleKey;
088: }
089:
090: /**
091: * Sets the titleKey attribute value.
092: */
093: public void setTitleKey(String titleKey) {
094: this .titleKey = titleKey;
095: }
096:
097: /**
098: * Gets the batchInputFileSetType attribute.
099: *
100: * @return Returns the batchInputFileSetType.
101: */
102: public BatchInputFileSetType getBatchInputFileSetType() {
103: return batchInputFileSetType;
104: }
105:
106: /**
107: * Sets the batchInputFileSetType attribute value.
108: *
109: * @param batchInputFileSetType The batchInputFileSetType to set.
110: */
111: public void setBatchInputFileSetType(
112: BatchInputFileSetType batchInputFileSetType) {
113: this .batchInputFileSetType = batchInputFileSetType;
114: }
115:
116: /**
117: * Gets the uploadedFiles attribute.
118: *
119: * @return Returns the uploadedFiles.
120: */
121: public Map<String, FormFile> getUploadedFiles() {
122: return uploadedFiles;
123: }
124:
125: /**
126: * Sets the uploadedFiles attribute value.
127: *
128: * @param uploadedFiles The uploadedFiles to set.
129: */
130: public void setUploadedFiles(Map<String, FormFile> uploadedFiles) {
131: this .uploadedFiles = uploadedFiles;
132: }
133:
134: /**
135: * Gets the supressDoneFileCreation attribute.
136: *
137: * @return Returns the supressDoneFileCreation.
138: */
139: public boolean isSupressDoneFileCreation() {
140: return supressDoneFileCreation;
141: }
142:
143: /**
144: * Sets the supressDoneFileCreation attribute value.
145: *
146: * @param supressDoneFileCreation The supressDoneFileCreation to set.
147: */
148: public void setSupressDoneFileCreation(
149: boolean supressDoneFileCreation) {
150: this .supressDoneFileCreation = supressDoneFileCreation;
151: }
152:
153: /**
154: * Gets the fileAliases attribute.
155: *
156: * @return Returns the fileAliases.
157: */
158: public List<KeyLabelPair> getFileTypes() {
159: return fileTypes;
160: }
161:
162: /**
163: * Sets the fileAliases attribute value.
164: *
165: * @param fileAliases The fileAliases to set.
166: */
167: public void setFileTypes(List<KeyLabelPair> fileAliases) {
168: this .fileTypes = fileAliases;
169: }
170:
171: /**
172: * Gets the downloadFileAlias attribute.
173: *
174: * @return Returns the downloadFileAlias.
175: */
176: public String getDownloadFileType() {
177: return downloadFileType;
178: }
179:
180: /**
181: * Sets the downloadFileAlias attribute value.
182: *
183: * @param downloadFileAlias The downloadFileAlias to set.
184: */
185: public void setDownloadFileType(String downloadFileAlias) {
186: this.downloadFileType = downloadFileAlias;
187: }
188: }
|