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 | 0 | public class UploadStatus implements Serializable{ |
23 | |
|
24 | |
private static final long serialVersionUID = 1L; |
25 | |
|
26 | 0 | public static enum UploadTransferStatus{IN_PROGRESS, UPLOAD_FINISHED, COMMIT_FINISHED, ERROR, FILE_ERROR} |
27 | |
|
28 | |
private Long totalSize; |
29 | |
private Long progress; |
30 | 0 | private UploadTransferStatus status = UploadTransferStatus.IN_PROGRESS; |
31 | 0 | private int itemsRead = 0; |
32 | 0 | private List<String> createdDocIds = new ArrayList<String>(); |
33 | 0 | private List<FileStatus> fileStatusList = new ArrayList<FileStatus>(); |
34 | |
|
35 | |
public Long getTotalSize() { |
36 | 0 | return totalSize; |
37 | |
} |
38 | |
public void setTotalSize(Long totalSize) { |
39 | 0 | this.totalSize = totalSize; |
40 | 0 | } |
41 | |
public Long getProgress() { |
42 | 0 | return progress; |
43 | |
} |
44 | |
public void setProgress(Long progress) { |
45 | 0 | this.progress = progress; |
46 | 0 | } |
47 | |
public UploadTransferStatus getStatus() { |
48 | 0 | return status; |
49 | |
} |
50 | |
public void setStatus(UploadTransferStatus status) { |
51 | 0 | this.status = status; |
52 | 0 | } |
53 | |
public int getItemsRead() { |
54 | 0 | return itemsRead; |
55 | |
} |
56 | |
public void setItemsRead(int itemsRead) { |
57 | 0 | this.itemsRead = itemsRead; |
58 | 0 | } |
59 | |
public List<String> getCreatedDocIds() { |
60 | 0 | return createdDocIds; |
61 | |
} |
62 | |
public void setCreatedDocIds(List<String> createdDocIds) { |
63 | 0 | this.createdDocIds = createdDocIds; |
64 | 0 | } |
65 | |
public List<FileStatus> getFileStatusList() { |
66 | 0 | return fileStatusList; |
67 | |
} |
68 | |
public void setFileStatusList(List<FileStatus> fileStatusList) { |
69 | 0 | this.fileStatusList = fileStatusList; |
70 | 0 | } |
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
} |