Subversion Repositories general

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package ak.hostadmiral.core.model;

import java.util.Collection;
import ak.hostadmiral.util.ModelException;

public interface UserModifiedListener
{
        /**
         * called if some user is just changed.
         *
         * @param editor  who is doing the operation
         * @param user    the user in its new state
         * @param oldUser copy of user as it was before the operation
         * @throws ModelException in case of any *fatal* errors,
         *         Note: throw it on fatal errors only, because database transaction
         *         will be rolled back but any other UserCreatedListeners might be already called
         *         and (possible) they will not restore their original state.
         */
        public void userModified(User editor, User user, User oldUser)
                throws ModelException;
}