Revision 623:66f69a7348ed src/gr/ebs/gss/server/domain/dto/FileHeaderDTO.java
b/src/gr/ebs/gss/server/domain/dto/FileHeaderDTO.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
import java.io.Serializable; |
22 | 22 |
import java.util.List; |
23 |
import java.util.Set; |
|
23 | 24 |
|
24 | 25 |
import com.google.gwt.i18n.client.NumberFormat; |
25 | 26 |
|
... | ... | |
104 | 105 |
* |
105 | 106 |
*/ |
106 | 107 |
private List<String> tags; |
108 |
|
|
109 |
private Set<PermissionDTO> permissions; |
|
107 | 110 |
/** |
108 | 111 |
* is this file deleted? |
109 | 112 |
*/ |
... | ... | |
236 | 239 |
auditInfo = newAuditInfo; |
237 | 240 |
} |
238 | 241 |
|
239 |
|
|
240 | 242 |
/** |
241 | 243 |
* Retrieve the tags. |
242 | 244 |
* |
... | ... | |
246 | 248 |
return tags; |
247 | 249 |
} |
248 | 250 |
|
249 |
|
|
250 | 251 |
/** |
251 | 252 |
* Modify the tags. |
252 | 253 |
* |
... | ... | |
256 | 257 |
tags = newTags; |
257 | 258 |
} |
258 | 259 |
|
259 |
|
|
260 | 260 |
/** |
261 | 261 |
* Retrieve the mimeType. |
262 | 262 |
* |
... | ... | |
266 | 266 |
return mimeType; |
267 | 267 |
} |
268 | 268 |
|
269 |
|
|
270 | 269 |
/** |
271 | 270 |
* Modify the mimeType. |
272 | 271 |
* |
... | ... | |
276 | 275 |
mimeType = newMimeType; |
277 | 276 |
} |
278 | 277 |
|
279 |
|
|
280 | 278 |
/** |
281 | 279 |
* Retrieve the originalFilename. |
282 | 280 |
* |
... | ... | |
286 | 284 |
return originalFilename; |
287 | 285 |
} |
288 | 286 |
|
289 |
|
|
290 | 287 |
/** |
291 | 288 |
* Modify the originalFilename. |
292 | 289 |
* |
... | ... | |
296 | 293 |
originalFilename = newOriginalFilename; |
297 | 294 |
} |
298 | 295 |
|
299 |
|
|
300 | 296 |
/** |
301 | 297 |
* Retrieve the originalFilenameEncoded. |
302 | 298 |
* |
... | ... | |
306 | 302 |
return originalFilenameEncoded; |
307 | 303 |
} |
308 | 304 |
|
309 |
|
|
310 | 305 |
/** |
311 | 306 |
* Modify the originalFilenameEncoded. |
312 | 307 |
* |
... | ... | |
316 | 311 |
originalFilenameEncoded = newOriginalFilenameEncoded; |
317 | 312 |
} |
318 | 313 |
|
319 |
|
|
320 | 314 |
/** |
321 | 315 |
* Retrieve the deleted. |
322 | 316 |
* |
... | ... | |
326 | 320 |
return deleted; |
327 | 321 |
} |
328 | 322 |
|
329 |
|
|
330 | 323 |
/** |
331 | 324 |
* Modify the deleted. |
332 | 325 |
* |
... | ... | |
336 | 329 |
deleted = newDeleted; |
337 | 330 |
} |
338 | 331 |
|
339 |
|
|
340 | 332 |
/** |
341 | 333 |
* Retrieve the readForAll. |
342 | 334 |
* |
... | ... | |
346 | 338 |
return readForAll; |
347 | 339 |
} |
348 | 340 |
|
349 |
|
|
350 | 341 |
/** |
351 | 342 |
* Modify the readForAll. |
352 | 343 |
* |
... | ... | |
374 | 365 |
path = aPath; |
375 | 366 |
} |
376 | 367 |
|
377 |
|
|
378 | 368 |
/** |
379 | 369 |
* Retrieve the URI for this resource, relative to the REST API root URI. |
380 | 370 |
* This unique identifier can be used to refer to the resource from |
... | ... | |
386 | 376 |
return owner.getUsername() + PATH_FILES + getPath(); |
387 | 377 |
} |
388 | 378 |
|
389 |
|
|
390 | 379 |
/** |
391 | 380 |
* Retrieve the folder. |
392 | 381 |
* |
... | ... | |
396 | 385 |
return folder; |
397 | 386 |
} |
398 | 387 |
|
399 |
|
|
400 | 388 |
/** |
401 | 389 |
* Modify the folder. |
402 | 390 |
* |
... | ... | |
405 | 393 |
public void setFolder(FolderDTO aFolder) { |
406 | 394 |
folder = aFolder; |
407 | 395 |
} |
396 |
|
|
397 |
/** |
|
398 |
* Modify the permissions. |
|
399 |
* |
|
400 |
* @param newPermissions the permissions to set |
|
401 |
*/ |
|
402 |
public void setPermissions(Set<PermissionDTO> newPermissions) { |
|
403 |
permissions = newPermissions; |
|
404 |
} |
|
405 |
|
|
406 |
/** |
|
407 |
* Retrieve the permissions. |
|
408 |
* |
|
409 |
* @return the permissions |
|
410 |
*/ |
|
411 |
public Set<PermissionDTO> getPermissions() { |
|
412 |
return permissions; |
|
413 |
} |
|
408 | 414 |
} |
Also available in: Unified diff