001    /**
002     * Copyright 2010 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     */
015    
016    package org.kuali.student.common.ui.client.dto;
017    
018    import java.io.Serializable;
019    
020    
021    public class FileStatus implements Serializable{
022            private static final long serialVersionUID = 1L;
023            
024            public static enum FileTransferStatus{IN_PROGRESS, UPLOAD_FINISHED, COMMIT_FINISHED, ERROR, FILE_ERROR}
025            private FileTransferStatus status = FileTransferStatus.IN_PROGRESS;
026            private Long progress = 0L;
027            private String fileName;
028            private String docId;
029            
030            public String getFileName() {
031                    return fileName;
032            }
033            public void setFileName(String fileName) {
034                    this.fileName = fileName;
035            }
036            public FileTransferStatus getStatus() {
037                    return status;
038            }
039            public void setStatus(FileTransferStatus status) {
040                    this.status = status;
041            }
042            public Long getProgress() {
043                    return progress;
044            }
045            public void setProgress(Long progress) {
046                    this.progress = progress;
047            }
048            public String getDocId() {
049                    return docId;
050            }
051            public void setDocId(String docId) {
052                    this.docId = docId;
053            }
054            
055            
056    }