| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Collection |
|
| 1.0;1 |
| 1 | package org.jtheque.primary.od.able; | |
| 2 | ||
| 3 | /** | |
| 4 | * A collection specification. | |
| 5 | * | |
| 6 | * @author Baptiste Wicht | |
| 7 | */ | |
| 8 | public interface Collection extends PrimaryData { | |
| 9 | /** | |
| 10 | * Set the title of the collection | |
| 11 | * | |
| 12 | * @param title The collection's title. | |
| 13 | */ | |
| 14 | void setTitle(String title); | |
| 15 | ||
| 16 | /** | |
| 17 | * Return the title of the collection. | |
| 18 | * | |
| 19 | * @return The title of the collection. | |
| 20 | */ | |
| 21 | String getTitle(); | |
| 22 | ||
| 23 | /** | |
| 24 | * Indicate if the collection is password protected or not. | |
| 25 | * | |
| 26 | * @return true if the collection is password protected else false. | |
| 27 | */ | |
| 28 | boolean isProtection(); | |
| 29 | ||
| 30 | /** | |
| 31 | * Set a boolean flag indicating if the collection is password-protected or not. | |
| 32 | * | |
| 33 | * @param protection A boolean flag indicating if the collection is password-protected or not. | |
| 34 | */ | |
| 35 | void setProtection(boolean protection); | |
| 36 | ||
| 37 | /** | |
| 38 | * Return the password of the collection encrypted with SHA-256. | |
| 39 | * | |
| 40 | * @return The encrypted password. | |
| 41 | */ | |
| 42 | String getPassword(); | |
| 43 | ||
| 44 | /** | |
| 45 | * Set the password of the collection. | |
| 46 | * | |
| 47 | * @param password The password of the collection. | |
| 48 | */ | |
| 49 | void setPassword(String password); | |
| 50 | } |