Clover Coverage Report - KS Common UI 1.2-M5-SNAPSHOT
Coverage timestamp: Mon Aug 29 2011 06:14:19 EDT
../../../../../../../img/srcFileCovDistChart0.png 4% of files have more coverage
12   81   12   1
0   50   1   6
12     1  
2    
 
  UploadStatus       Line # 28 12 0% 12 24 0% 0.0
  UploadStatus.UploadTransferStatus       Line # 32 0 - 0 0 - -1.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
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    * Simple class used to store upload progress information for the UploadServlet
24    *
25    * @author Kuali Student Team
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  0 toggle public Long getTotalSize() {
42  0 return totalSize;
43    }
 
44  0 toggle public void setTotalSize(Long totalSize) {
45  0 this.totalSize = totalSize;
46    }
 
47  0 toggle public Long getProgress() {
48  0 return progress;
49    }
 
50  0 toggle public void setProgress(Long progress) {
51  0 this.progress = progress;
52    }
 
53  0 toggle public UploadTransferStatus getStatus() {
54  0 return status;
55    }
 
56  0 toggle public void setStatus(UploadTransferStatus status) {
57  0 this.status = status;
58    }
 
59  0 toggle public int getItemsRead() {
60  0 return itemsRead;
61    }
 
62  0 toggle public void setItemsRead(int itemsRead) {
63  0 this.itemsRead = itemsRead;
64    }
 
65  0 toggle public List<String> getCreatedDocIds() {
66  0 return createdDocIds;
67    }
 
68  0 toggle public void setCreatedDocIds(List<String> createdDocIds) {
69  0 this.createdDocIds = createdDocIds;
70    }
 
71  0 toggle public List<FileStatus> getFileStatusList() {
72  0 return fileStatusList;
73    }
 
74  0 toggle public void setFileStatusList(List<FileStatus> fileStatusList) {
75  0 this.fileStatusList = fileStatusList;
76    }
77   
78   
79   
80   
81    }