Subversion Repositories general

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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