package eu.bcvsolutions.idm.core.model.event;

import java.io.Serializable;
import java.util.Map;

import eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto;
import eu.bcvsolutions.idm.core.api.event.CoreEvent;
import eu.bcvsolutions.idm.core.api.event.EventType;

/**
 * Events for identity
 * 
 * @author Radek Tomiška
 *
 */
public class IdentityEvent extends CoreEvent<IdmIdentityDto> {

	private static final long serialVersionUID = 1L;

	/**
	 * Supported identity events
	 *
	 */
	public enum IdentityEventType implements EventType {
		CREATE, 
		UPDATE, 
		DELETE, 
		PASSWORD, // password change: TODO: rename to PASSWORD_CHANGE
		PASSWORD_EXPIRED
	}
	
	public IdentityEvent(IdentityEventType operation, IdmIdentityDto content) {
		super(operation, content);
	}
	
	public IdentityEvent(IdentityEventType operation, IdmIdentityDto content, Map<String, Serializable> properties) {
		super(operation, content, properties);
	}

}
@@ -452,16 +452,21 @@
 pported 
+core 
 identity
@@ -603,41 +603,8 @@
 ange
-: TODO: rename to PASSWORD_CHANGE
 %0A%09%09P

remove IdentityEventType todo about event rename / is not possible now