Commit f2ed17f6c72c0ab47603584c4ac45f0cb7b585d0

Authored by jcartign
1 parent 5418cb05

upgrading Javadoc

src/main/java/fr/plil/sio/persistence/api/GroupService.java
@@ -9,7 +9,7 @@ public interface GroupService { @@ -9,7 +9,7 @@ public interface GroupService {
9 * @param name the name of the group 9 * @param name the name of the group
10 * @return an instance of the group 10 * @return an instance of the group
11 * @throws IllegalArgumentException if name is null 11 * @throws IllegalArgumentException if name is null
12 - * @throws IllegalStateException if a group with the same name is already present 12 + * @throws IllegalStateException if a group with the same name is already present
13 */ 13 */
14 Group create(String name); 14 Group create(String name);
15 15
src/main/java/fr/plil/sio/persistence/api/RightService.java
@@ -24,11 +24,11 @@ public interface RightService { @@ -24,11 +24,11 @@ public interface RightService {
24 Right create(String name, Right parent); 24 Right create(String name, Right parent);
25 25
26 /** 26 /**
27 - * Delete a right in the database. 27 + * Delete a right in the database. Delete sibling rights if present.
28 * 28 *
29 * @param right the right to delete 29 * @param right the right to delete
30 - * @return true if right has been deleted  
31 - * @throws IllegalArgumentException if right is null or if right is not found in the database. 30 + * @return true if right has been deleted, false else.
  31 + * @throws IllegalArgumentException if right is null.
32 */ 32 */
33 boolean delete(Right right); 33 boolean delete(Right right);
34 34
src/main/java/fr/plil/sio/persistence/api/UserService.java
@@ -7,6 +7,7 @@ public interface UserService { @@ -7,6 +7,7 @@ public interface UserService {
7 * There is no two users with the same name in the database. 7 * There is no two users with the same name in the database.
8 * 8 *
9 * @param name the name of the user 9 * @param name the name of the user
  10 + * @param groupName the name of the group
10 * @return an instance of the user 11 * @return an instance of the user
11 * @throws IllegalArgumentException if name or groupName is null, or if group does not exist. 12 * @throws IllegalArgumentException if name or groupName is null, or if group does not exist.
12 * @throws IllegalStateException if an user with the same name is already present 13 * @throws IllegalStateException if an user with the same name is already present