Revision 31684
Added by Sandro La Bruzzo over 9 years ago
ObjectStoreFile.java | ||
---|---|---|
39 | 39 |
/** The md5 sum of the file. */ |
40 | 40 |
private String md5Sum; |
41 | 41 |
|
42 |
/** The file size. */ |
|
43 |
private long fileSizeKB; |
|
44 |
|
|
42 | 45 |
/** |
43 | 46 |
* Gets the downloaded url. |
44 |
*
|
|
47 |
* |
|
45 | 48 |
* @return the downloaded url |
46 | 49 |
*/ |
47 | 50 |
public String getDownloadedURL() { |
... | ... | |
50 | 53 |
|
51 | 54 |
/** |
52 | 55 |
* Sets the downloaded url. |
53 |
*
|
|
56 |
* |
|
54 | 57 |
* @param downloadedURL |
55 | 58 |
* the new downloaded url |
56 | 59 |
*/ |
... | ... | |
68 | 71 |
|
69 | 72 |
/** |
70 | 73 |
* Return a new instance of the object from a json String. |
71 |
*
|
|
74 |
* |
|
72 | 75 |
* @param jsonObject |
73 | 76 |
* the json object |
74 | 77 |
* @return the object store file |
... | ... | |
80 | 83 |
|
81 | 84 |
/** |
82 | 85 |
* Gets the object id. |
83 |
*
|
|
86 |
* |
|
84 | 87 |
* @return the object id |
85 | 88 |
*/ |
86 | 89 |
public String getObjectID() { |
... | ... | |
89 | 92 |
|
90 | 93 |
/** |
91 | 94 |
* Sets the object id. |
92 |
*
|
|
95 |
* |
|
93 | 96 |
* @param objectID |
94 | 97 |
* the new object id |
95 | 98 |
*/ |
... | ... | |
99 | 102 |
|
100 | 103 |
/** |
101 | 104 |
* Gets the mime type. |
102 |
*
|
|
105 |
* |
|
103 | 106 |
* @return the mime type |
104 | 107 |
*/ |
105 | 108 |
public String getMimeType() { |
... | ... | |
108 | 111 |
|
109 | 112 |
/** |
110 | 113 |
* Sets the mime type. |
111 |
*
|
|
114 |
* |
|
112 | 115 |
* @param mimeType |
113 | 116 |
* the new mime type |
114 | 117 |
*/ |
... | ... | |
118 | 121 |
|
119 | 122 |
/** |
120 | 123 |
* Gets the access protocol. |
121 |
*
|
|
124 |
* |
|
122 | 125 |
* @return the access protocol |
123 | 126 |
*/ |
124 | 127 |
public Protocols getAccessProtocol() { |
... | ... | |
127 | 130 |
|
128 | 131 |
/** |
129 | 132 |
* Sets the access protocol. |
130 |
*
|
|
133 |
* |
|
131 | 134 |
* @param accessProtocol |
132 | 135 |
* the new access protocol |
133 | 136 |
*/ |
... | ... | |
137 | 140 |
|
138 | 141 |
/** |
139 | 142 |
* Gets the username auth. |
140 |
*
|
|
143 |
* |
|
141 | 144 |
* @return the username auth |
142 | 145 |
*/ |
143 | 146 |
public String getUsernameAuth() { |
... | ... | |
146 | 149 |
|
147 | 150 |
/** |
148 | 151 |
* Sets the username auth. |
149 |
*
|
|
152 |
* |
|
150 | 153 |
* @param usernameAuth |
151 | 154 |
* the new username auth |
152 | 155 |
*/ |
... | ... | |
156 | 159 |
|
157 | 160 |
/** |
158 | 161 |
* Gets the password auth. |
159 |
*
|
|
162 |
* |
|
160 | 163 |
* @return the password auth |
161 | 164 |
*/ |
162 | 165 |
public String getPasswordAuth() { |
... | ... | |
165 | 168 |
|
166 | 169 |
/** |
167 | 170 |
* Sets the password auth. |
168 |
*
|
|
171 |
* |
|
169 | 172 |
* @param passwordAuth |
170 | 173 |
* the new password auth |
171 | 174 |
*/ |
... | ... | |
175 | 178 |
|
176 | 179 |
/** |
177 | 180 |
* Gets the uri. |
178 |
*
|
|
181 |
* |
|
179 | 182 |
* @return the uri |
180 | 183 |
*/ |
181 | 184 |
public String getURI() { |
... | ... | |
184 | 187 |
|
185 | 188 |
/** |
186 | 189 |
* Sets the uri. |
187 |
*
|
|
190 |
* |
|
188 | 191 |
* @param uRI |
189 | 192 |
* the new uri |
190 | 193 |
*/ |
... | ... | |
195 | 198 |
|
196 | 199 |
/** |
197 | 200 |
* Convert the object into a json String. |
198 |
*
|
|
201 |
* |
|
199 | 202 |
* @return the string |
200 | 203 |
*/ |
201 | 204 |
public String toJSON() { |
... | ... | |
205 | 208 |
|
206 | 209 |
/** |
207 | 210 |
* Gets the related metadata id. |
208 |
*
|
|
211 |
* |
|
209 | 212 |
* @return the related metadata id. |
210 | 213 |
*/ |
211 | 214 |
public String getMetadataRelatedID() { |
... | ... | |
214 | 217 |
|
215 | 218 |
/** |
216 | 219 |
* Sets the related metadata id. |
217 |
*
|
|
220 |
* |
|
218 | 221 |
* @param metadataRelatedID |
219 | 222 |
* the related metadata id. |
220 | 223 |
*/ |
... | ... | |
230 | 233 |
} |
231 | 234 |
|
232 | 235 |
/** |
233 |
* @param md5Sum the md5Sum to set |
|
236 |
* @param md5Sum |
|
237 |
* the md5Sum to set |
|
234 | 238 |
*/ |
235 |
public void setMd5Sum(String md5Sum) { |
|
239 |
public void setMd5Sum(final String md5Sum) {
|
|
236 | 240 |
this.md5Sum = md5Sum; |
237 | 241 |
} |
238 | 242 |
|
243 |
/** |
|
244 |
* @return the fileSizeKB |
|
245 |
*/ |
|
246 |
public long getFileSizeKB() { |
|
247 |
return fileSizeKB; |
|
248 |
} |
|
249 |
|
|
250 |
/** |
|
251 |
* @param fileSizeKB the fileSizeKB to set |
|
252 |
*/ |
|
253 |
public void setFileSizeKB(long fileSizeKB) { |
|
254 |
this.fileSizeKB = fileSizeKB; |
|
255 |
} |
|
256 |
|
|
239 | 257 |
} |
Also available in: Unified diff
Added size in kilobytes for each ObjectstoreFile metadata