Package io.meeds.gamification.storage
Class EventStorage
java.lang.Object
io.meeds.gamification.storage.EventStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountEventsByFilter(EventFilter eventFilter) Count gamification events by filterdeleteEventById(long eventId) Deletes event by idfindEventsByFilter(EventFilter eventFilter, int offset, int limit) Get all gamification events by filtergetEventById(long eventId) Retrieves gamification event by event idgetEventByTitleAndTrigger(String title, String trigger) Get gamification event by event title and trigger namegetEventByTypeAndTitle(String type, String title) Get gamification event by event title and trigger namegetEventsByTitle(String title, int offset, int limit) save Event
-
Constructor Details
-
EventStorage
-
-
Method Details
-
findEventsByFilter
Get all gamification events by filter- Parameters:
eventFilter-EventFilterused to filter eventsoffset- Offset of resultlimit- Limit of result- Returns:
ListofEventDTO
-
countEventsByFilter
Count gamification events by filter- Parameters:
eventFilter-EventFilterused to filter events- Returns:
- count events by filter
-
getEventByTitleAndTrigger
Get gamification event by event title and trigger name- Parameters:
title- event titletrigger- trigger name- Returns:
EventDTO
-
getEventByTypeAndTitle
Get gamification event by event title and trigger name- Parameters:
type- event typetitle- event title- Returns:
EventDTO
-
getEventsByTitle
-
saveEvent
save Event- Parameters:
eventDTO-EventDTOto create
-
getEventById
Retrieves gamification event by event id- Parameters:
eventId- Event Identifier- Returns:
EventDTO
-
deleteEventById
public EventDTO deleteEventById(long eventId) throws org.exoplatform.commons.exception.ObjectNotFoundException Deletes event by id- Parameters:
eventId- Event Identifier- Returns:
EventDTO- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-