1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sys.batch;
17
18 import java.io.File;
19 import java.util.Date;
20 import java.util.LinkedHashMap;
21
22 import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
23
24 public class BatchFile extends TransientBusinessObjectBase {
25 private File file;
26
27 public BatchFile() {
28 }
29
30 public String getPath() {
31 return BatchFileUtils.pathRelativeToRootDirectory(file.getAbsoluteFile().getParentFile().getAbsolutePath());
32 }
33
34 public String getFileName() {
35 return file.getName();
36 }
37
38 public Date getLastModifiedDate() {
39 return new Date(file.lastModified());
40 }
41
42 public long getFileSize() {
43 return file.length();
44 }
45
46
47 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
48 return null;
49 }
50
51
52 public File retrieveFile() {
53 return file;
54 }
55
56 public void setFile(File file) {
57 this.file = file;
58 }
59 }