Rev 1010 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1010 | dev | 1 | package ak.hostadmiral.core.model; |
2 | |||
3 | import ak.hostadmiral.util.ModelException; |
||
4 | |||
5 | public interface UserModifiedListener |
||
6 | { |
||
7 | /** |
||
8 | * called if some user is just changed. |
||
9 | * |
||
10 | * @param editor who is doing the operation |
||
11 | * @param user the user in its new state |
||
12 | * @param oldUser copy of user as it was before the operation |
||
13 | * @throws ModelException in case of any *fatal* errors, |
||
14 | * Note: throw it on fatal errors only, because database transaction |
||
15 | * will be rolled back but any other UserCreatedListeners might be already called |
||
16 | * and (possible) they will not restore their original state. |
||
17 | */ |
||
18 | public void userModified(User editor, User user, User oldUser) |
||
19 | throws ModelException; |
||
20 | } |