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  
20  
21  public class FileStatus implements Serializable{
22  	private static final long serialVersionUID = 1L;
23  	
24  	public static enum FileTransferStatus{IN_PROGRESS, UPLOAD_FINISHED, COMMIT_FINISHED, ERROR, FILE_ERROR}
25  	private FileTransferStatus status = FileTransferStatus.IN_PROGRESS;
26  	private Long progress = 0L;
27  	private String fileName;
28  	private String docId;
29  	
30  	public String getFileName() {
31  		return fileName;
32  	}
33  	public void setFileName(String fileName) {
34  		this.fileName = fileName;
35  	}
36  	public FileTransferStatus getStatus() {
37  		return status;
38  	}
39  	public void setStatus(FileTransferStatus status) {
40  		this.status = status;
41  	}
42  	public Long getProgress() {
43  		return progress;
44  	}
45  	public void setProgress(Long progress) {
46  		this.progress = progress;
47  	}
48  	public String getDocId() {
49  		return docId;
50  	}
51  	public void setDocId(String docId) {
52  		this.docId = docId;
53  	}
54  	
55  	
56  }