|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mycompany.service.impl.AbstractService
com.mycompany.service.impl.EventServiceImpl
@Named(value="eventService") public class EventServiceImpl
Constructor Summary | |
---|---|
EventServiceImpl()
|
Method Summary | |
---|---|
java.util.List<Event> |
findAllEvents()
Finds all Event objects. |
java.util.List<EventAttendance> |
findAllEventsAttendanceByUser(User user)
Finds all EventAttendance objects for a particular User . |
EventAttendance |
findEventAttendance(Event event,
User user)
Finds the EventAttendance object for a particular Event
and User . |
Event |
findEventById(java.lang.Integer id)
Finds an Event by ID. |
java.util.List<Event> |
findEvents(City city,
ProvinceState provinceState,
EventType eventType,
java.lang.String keyword)
Finds a List of Event objects in a City and
ProvinceState for a particular EventType and keyword. |
java.util.List<Event> |
findUserEvents(java.util.Date start,
java.util.Date end,
User user)
Finds a List of Event objects between a start and end date
created by a particular User . |
EventAttendance |
saveAttendance(EventAttendance attendance)
Saves an EventAttendance object. |
Event |
saveEvent(Event event)
Saves an Event . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventServiceImpl()
Method Detail |
---|
public java.util.List<Event> findAllEvents()
EventService
Event
objects.
findAllEvents
in interface EventService
public java.util.List<EventAttendance> findAllEventsAttendanceByUser(User user)
EventService
EventAttendance
objects for a particular User
.
findAllEventsAttendanceByUser
in interface EventService
user
- The User object.
public EventAttendance findEventAttendance(Event event, User user)
EventService
EventAttendance
object for a particular Event
and User
.
findEventAttendance
in interface EventService
event
- The Event object.user
- The User object.
public Event findEventById(java.lang.Integer id)
EventService
Event
by ID.
findEventById
in interface EventService
id
- The Event ID.
public java.util.List<Event> findUserEvents(java.util.Date start, java.util.Date end, User user)
EventService
Event
objects between a start and end date
created by a particular User
.
findUserEvents
in interface EventService
start
- The start date.end
- The end date.user
- The User object.
public EventAttendance saveAttendance(EventAttendance attendance)
EventService
EventAttendance
object.
saveAttendance
in interface EventService
attendance
- The EventAttendance object.
public Event saveEvent(Event event)
EventService
Event
.
saveEvent
in interface EventService
event
- The Event object.
public java.util.List<Event> findEvents(City city, ProvinceState provinceState, EventType eventType, java.lang.String keyword)
EventService
Event
objects in a City
and
ProvinceState
for a particular EventType
and keyword.
findEvents
in interface EventService
city
- The City object.provinceState
- The ProvinceState object.eventType
- The EventType object.keyword
- A keyword.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |