View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.secure;
17  
18  public class RemoteFile {
19  
20  	String absolutePath;
21  	Integer groupId;
22  	Integer userId;
23  	Integer permissions;
24  	Long size;
25  	boolean directory;
26  	Status status = Status.DEFAULT_REMOTE_FILE_STATUS;
27  
28  	public RemoteFile() {
29  		this(null);
30  	}
31  
32  	public RemoteFile(String absolutePath) {
33  		super();
34  		this.absolutePath = absolutePath;
35  	}
36  
37  	public String getAbsolutePath() {
38  		return absolutePath;
39  	}
40  
41  	public void setAbsolutePath(String absolutePath) {
42  		this.absolutePath = absolutePath;
43  	}
44  
45  	public Integer getGroupId() {
46  		return groupId;
47  	}
48  
49  	public void setGroupId(Integer groupId) {
50  		this.groupId = groupId;
51  	}
52  
53  	public Integer getUserId() {
54  		return userId;
55  	}
56  
57  	public void setUserId(Integer userId) {
58  		this.userId = userId;
59  	}
60  
61  	public Integer getPermissions() {
62  		return permissions;
63  	}
64  
65  	public void setPermissions(Integer permissions) {
66  		this.permissions = permissions;
67  	}
68  
69  	public Long getSize() {
70  		return size;
71  	}
72  
73  	public void setSize(Long size) {
74  		this.size = size;
75  	}
76  
77  	public boolean isDirectory() {
78  		return directory;
79  	}
80  
81  	public void setDirectory(boolean directory) {
82  		this.directory = directory;
83  	}
84  
85  	public Status getStatus() {
86  		return status;
87  	}
88  
89  	public void setStatus(Status status) {
90  		this.status = status;
91  	}
92  
93  }