View Javadoc
1   package fr.paris.lutece.portal.business.event;
2   
3   import fr.paris.lutece.portal.service.security.LuteceUser;
4   
5   public class LuteceUserEvent extends AbstractLuteceEvent<LuteceUser> 
6   {
7   	/**
8   	 * event types
9   	 */
10  	public enum EventType {
11  		LOGIN_SUCCESSFUL,
12  		LOGIN_FAILED,
13  		USER_CREATED,
14  		USER_DELETED,
15  		PASSWORD_CHANGED_SUCCESSFUL,
16  		LOGOUT;
17  	}
18  	
19  	// user event type
20  	private EventType _type;
21  	
22  	/**
23  	 * Constuctor
24  	 * 
25  	 * @param user
26  	 * @param type
27  	 */
28  	public LuteceUserEvent(LuteceUser user, EventType type ) 
29  	{
30  		super( user );
31  		_type = type;
32  	}
33  
34  	/**
35  	 * get type 
36  	 * @return the type 
37  	 */
38  	public EventType getType( ) 
39  	{
40  		return _type;
41  	}
42  }