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 |
|
@author |
26 |
|
|
27 |
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 12 |
Complexity Density: 1 |
|
28 |
|
public class UploadStatus implements Serializable{ |
29 |
|
|
30 |
|
private static final long serialVersionUID = 1L; |
31 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
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 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
0
|
public Long getTotalSize() {... |
42 |
0
|
return totalSize; |
43 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public void setTotalSize(Long totalSize) {... |
45 |
0
|
this.totalSize = totalSize; |
46 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
0
|
public Long getProgress() {... |
48 |
0
|
return progress; |
49 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
public void setProgress(Long progress) {... |
51 |
0
|
this.progress = progress; |
52 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0
|
public UploadTransferStatus getStatus() {... |
54 |
0
|
return status; |
55 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0
|
public void setStatus(UploadTransferStatus status) {... |
57 |
0
|
this.status = status; |
58 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public int getItemsRead() {... |
60 |
0
|
return itemsRead; |
61 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0
|
public void setItemsRead(int itemsRead) {... |
63 |
0
|
this.itemsRead = itemsRead; |
64 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public List<String> getCreatedDocIds() {... |
66 |
0
|
return createdDocIds; |
67 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
public void setCreatedDocIds(List<String> createdDocIds) {... |
69 |
0
|
this.createdDocIds = createdDocIds; |
70 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public List<FileStatus> getFileStatusList() {... |
72 |
0
|
return fileStatusList; |
73 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0
|
public void setFileStatusList(List<FileStatus> fileStatusList) {... |
75 |
0
|
this.fileStatusList = fileStatusList; |
76 |
|
} |
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
} |