001    /**
002     * Copyright 2010-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.common.util.secure;
017    
018    public class RemoteFile {
019    
020            String absolutePath;
021            Integer groupId;
022            Integer userId;
023            Integer permissions;
024            Long size;
025            boolean directory;
026            Status status = Status.DEFAULT_REMOTE_FILE_STATUS;
027    
028            public RemoteFile() {
029                    this(null);
030            }
031    
032            public RemoteFile(String absolutePath) {
033                    super();
034                    this.absolutePath = absolutePath;
035            }
036    
037            public String getAbsolutePath() {
038                    return absolutePath;
039            }
040    
041            public void setAbsolutePath(String absolutePath) {
042                    this.absolutePath = absolutePath;
043            }
044    
045            public Integer getGroupId() {
046                    return groupId;
047            }
048    
049            public void setGroupId(Integer groupId) {
050                    this.groupId = groupId;
051            }
052    
053            public Integer getUserId() {
054                    return userId;
055            }
056    
057            public void setUserId(Integer userId) {
058                    this.userId = userId;
059            }
060    
061            public Integer getPermissions() {
062                    return permissions;
063            }
064    
065            public void setPermissions(Integer permissions) {
066                    this.permissions = permissions;
067            }
068    
069            public Long getSize() {
070                    return size;
071            }
072    
073            public void setSize(Long size) {
074                    this.size = size;
075            }
076    
077            public boolean isDirectory() {
078                    return directory;
079            }
080    
081            public void setDirectory(boolean directory) {
082                    this.directory = directory;
083            }
084    
085            public Status getStatus() {
086                    return status;
087            }
088    
089            public void setStatus(Status status) {
090                    this.status = status;
091            }
092    
093    }