2014-08-27 10:41:40 +00:00
|
|
|
package org.keycloak.events;
|
2014-03-25 10:36:15 +00:00
|
|
|
|
2015-05-28 12:35:31 +00:00
|
|
|
import java.util.Date;
|
2014-03-25 10:36:15 +00:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
|
|
|
*/
|
|
|
|
public interface EventQuery {
|
|
|
|
|
2014-08-27 10:41:40 +00:00
|
|
|
public EventQuery type(EventType... types);
|
2014-03-25 10:36:15 +00:00
|
|
|
|
|
|
|
public EventQuery realm(String realmId);
|
|
|
|
|
|
|
|
public EventQuery client(String clientId);
|
|
|
|
|
|
|
|
public EventQuery user(String userId);
|
|
|
|
|
2015-05-28 12:35:31 +00:00
|
|
|
public EventQuery fromDate(Date fromDate);
|
2015-03-05 14:46:16 +00:00
|
|
|
|
2015-05-28 12:35:31 +00:00
|
|
|
public EventQuery toDate(Date toDate);
|
2015-03-05 14:46:16 +00:00
|
|
|
|
2014-04-04 13:23:14 +00:00
|
|
|
public EventQuery ipAddress(String ipAddress);
|
|
|
|
|
2014-03-25 10:36:15 +00:00
|
|
|
public EventQuery firstResult(int result);
|
|
|
|
|
|
|
|
public EventQuery maxResults(int results);
|
|
|
|
|
|
|
|
public List<Event> getResultList();
|
|
|
|
|
|
|
|
}
|