1 package org.rundeck.api.domain;
2
3 import java.util.List;
4 import java.util.Map;
5
6
7
8
9
10
11
12 public class BaseStorageResource implements StorageResource {
13 private String path;
14 private String url;
15 private String name;
16 private Map<String,String> metadata;
17 private boolean directory;
18 private List<? extends StorageResource> directoryContents;
19
20 public BaseStorageResource() {
21 }
22
23 @Override
24 public String getPath() {
25 return path;
26 }
27
28 public void setPath(String path) {
29 this.path = path;
30 }
31
32 @Override
33 public String getUrl() {
34 return url;
35 }
36
37 public void setUrl(String url) {
38 this.url = url;
39 }
40
41 @Override
42 public String getName() {
43 return name;
44 }
45
46 public void setName(String name) {
47 this.name = name;
48 }
49
50 @Override
51 public Map<String, String> getMetadata() {
52 return metadata;
53 }
54
55 public void setMetadata(Map<String, String> metadata) {
56 this.metadata = metadata;
57 }
58
59 @Override
60 public boolean isDirectory() {
61 return directory;
62 }
63
64 public void setDirectory(boolean directory) {
65 this.directory = directory;
66 }
67
68 @Override
69 public List<? extends StorageResource> getDirectoryContents() {
70 return directoryContents;
71 }
72
73 public void setDirectoryContents(List<? extends StorageResource> directoryContents) {
74 this.directoryContents = directoryContents;
75 }
76
77 @Override
78 public String toString() {
79 return "BaseStorageResource{" +
80 "path='" + path + '\'' +
81 ", url='" + url + '\'' +
82 ", name='" + name + '\'' +
83 ", directory=" + directory +
84 '}';
85 }
86 }