Skip to content

Commit

Permalink
feat(event): add find by event type method
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompiegne committed Jan 7, 2016
1 parent 717733d commit baf7640
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@
package io.gravitee.repository.management.api;

import io.gravitee.repository.management.model.Event;
import io.gravitee.repository.management.model.EventType;

import java.util.List;
import java.util.Set;

/**
* @author Titouan COMPIEGNE
*/
public interface EventRepository extends CrudRepository<Event, String> {

Set<Event> findByType(List<EventType> eventTypes);

}
13 changes: 13 additions & 0 deletions src/main/java/io/gravitee/repository/management/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public class Event {
* The event origin
*/
private String origin;

/**
* The event publisher
*/
private String username;

/**
* The event creation date
Expand Down Expand Up @@ -96,6 +101,14 @@ public String getOrigin() {
public void setOrigin(String origin) {
this.origin = origin;
}

public String getUsername() {
return username;
}

public void setUsername(String username) {
this.username = username;
}

public Date getCreatedAt() {
return createdAt;
Expand Down

0 comments on commit baf7640

Please sign in to comment.