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.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase; 021 022 /** 023 * Object that contains properties used on the batch upload screen. 024 */ 025 public class BatchUpload extends TransientBusinessObjectBase { 026 private String batchInputTypeName; 027 private String fileUserIdentifer; 028 private String existingFileName; 029 030 /** 031 * Default no-arg constructor. 032 */ 033 public BatchUpload() { 034 035 } 036 037 038 /** 039 * Gets the batchInputTypeName attribute. 040 * 041 * @return Returns the batchInputTypeName. 042 */ 043 public String getBatchInputTypeName() { 044 return batchInputTypeName; 045 } 046 047 048 /** 049 * Sets the batchInputTypeName attribute value. 050 * 051 * @param batchInputTypeName The batchInputTypeName to set. 052 */ 053 public void setBatchInputTypeName(String batchInputTypeName) { 054 this.batchInputTypeName = batchInputTypeName; 055 } 056 057 058 /** 059 * Gets the existingFileName attribute. 060 * 061 * @return Returns the existingFileName. 062 */ 063 public String getExistingFileName() { 064 return existingFileName; 065 } 066 067 068 /** 069 * Sets the existingFileName attribute value. 070 * 071 * @param existingFileName The existingFileName to set. 072 */ 073 public void setExistingFileName(String deleteFile) { 074 this.existingFileName = deleteFile; 075 } 076 077 078 /** 079 * Gets the fileUserIdentifer attribute. 080 * 081 * @return Returns the fileUserIdentifer. 082 */ 083 public String getFileUserIdentifer() { 084 return fileUserIdentifer; 085 } 086 087 088 /** 089 * Sets the fileUserIdentifer attribute value. 090 * 091 * @param fileUserIdentifer The fileUserIdentifer to set. 092 */ 093 public void setFileUserIdentifer(String fileRename) { 094 this.fileUserIdentifer = fileRename; 095 } 096 097 098 @Override 099 protected LinkedHashMap toStringMapper() { 100 LinkedHashMap m = new LinkedHashMap(); 101 m.put("batchInputType", this.batchInputTypeName); 102 return m; 103 } 104 105 }