001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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.sys.web.struts;
017
018 import java.util.List;
019
020 import org.apache.struts.upload.FormFile;
021 import org.kuali.kfs.sys.businessobject.BatchUpload;
022 import org.kuali.rice.kns.web.struts.form.KualiForm;
023 import org.kuali.rice.core.util.KeyLabelPair;
024
025 /**
026 * Struts action form for the batch upload screen.
027 */
028 public class KualiBatchInputFileForm extends KualiForm {
029 private FormFile uploadFile;
030 private BatchUpload batchUpload;
031 private List<KeyLabelPair> userFiles;
032 private String url;
033
034 //getterURL pull system parameter used method get parameter.evaluator
035
036
037 private String titleKey;
038
039 /**
040 * Constructs a KualiBatchInputFileForm.java.
041 */
042 public KualiBatchInputFileForm() {
043 super();
044 this.batchUpload = new BatchUpload();
045 }
046
047 /**
048 * Gets the batchUpload attribute.
049 */
050 public BatchUpload getBatchUpload() {
051 return batchUpload;
052 }
053
054 /**
055 * Sets the batchUpload attribute value.
056 */
057 public void setBatchUpload(BatchUpload batchUpload) {
058 this.batchUpload = batchUpload;
059 }
060
061 /**
062 * Gets the uploadFile attribute.
063 */
064 public FormFile getUploadFile() {
065 return uploadFile;
066 }
067
068 /**
069 * Sets the uploadFile attribute value.
070 */
071 public void setUploadFile(FormFile uploadFile) {
072 this.uploadFile = uploadFile;
073 }
074
075 /**
076 * Gets the userFiles attribute.
077 */
078 public List<KeyLabelPair> getUserFiles() {
079 return userFiles;
080 }
081
082 /**
083 * Sets the userFiles attribute value.
084 */
085 public void setUserFiles(List<KeyLabelPair> userFiles) {
086 this.userFiles = userFiles;
087 }
088
089 /**
090 * Gets the titleKey attribute.
091 */
092 public String getTitleKey() {
093 return titleKey;
094 }
095
096 /**
097 * Sets the titleKey attribute value.
098 */
099 public void setTitleKey(String titleKey) {
100 this.titleKey = titleKey;
101 }
102
103 /**
104 * Gets the url attribute.
105 * @return Returns the url.
106 */
107 public String getUrl() {
108 return url;
109 }
110
111 /**
112 * Sets the url attribute value.
113 * @param url The url to set.
114 */
115 public void setUrl(String url) {
116 this.url = url;
117 }
118
119
120 }