View Javadoc

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