1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.dto;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.List;
21
22
23
24
25
26
27
28 public class UploadStatus implements Serializable{
29
30 private static final long serialVersionUID = 1L;
31
32 public static enum UploadTransferStatus{IN_PROGRESS, UPLOAD_FINISHED, COMMIT_FINISHED, ERROR, FILE_ERROR}
33
34 private Long totalSize;
35 private Long progress;
36 private UploadTransferStatus status = UploadTransferStatus.IN_PROGRESS;
37 private int itemsRead = 0;
38 private List<String> createdDocIds = new ArrayList<String>();
39 private List<FileStatus> fileStatusList = new ArrayList<FileStatus>();
40
41 public Long getTotalSize() {
42 return totalSize;
43 }
44 public void setTotalSize(Long totalSize) {
45 this.totalSize = totalSize;
46 }
47 public Long getProgress() {
48 return progress;
49 }
50 public void setProgress(Long progress) {
51 this.progress = progress;
52 }
53 public UploadTransferStatus getStatus() {
54 return status;
55 }
56 public void setStatus(UploadTransferStatus status) {
57 this.status = status;
58 }
59 public int getItemsRead() {
60 return itemsRead;
61 }
62 public void setItemsRead(int itemsRead) {
63 this.itemsRead = itemsRead;
64 }
65 public List<String> getCreatedDocIds() {
66 return createdDocIds;
67 }
68 public void setCreatedDocIds(List<String> createdDocIds) {
69 this.createdDocIds = createdDocIds;
70 }
71 public List<FileStatus> getFileStatusList() {
72 return fileStatusList;
73 }
74 public void setFileStatusList(List<FileStatus> fileStatusList) {
75 this.fileStatusList = fileStatusList;
76 }
77
78
79
80
81 }