com.mycompany.service
Interface EventService

All Known Implementing Classes:
EventServiceImpl

public interface EventService

Interfaces for an event service.

Author:
Ian Hlavats (ian@tarantulaconsulting.com)

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.
 

Method Detail

findAllEvents

java.util.List<Event> findAllEvents()
Finds all Event objects.

Returns:
A List of Event objects.

findAllEventsAttendanceByUser

java.util.List<EventAttendance> findAllEventsAttendanceByUser(User user)
Finds all EventAttendance objects for a particular User.

Parameters:
user - The User object.
Returns:
A List of EventAttendance objects.

findEventAttendance

EventAttendance findEventAttendance(Event event,
                                    User user)
Finds the EventAttendance object for a particular Event and User.

Parameters:
event - The Event object.
user - The User object.
Returns:
An EventAttendance object.

findEventById

Event findEventById(java.lang.Integer id)
Finds an Event by ID.

Parameters:
id - The Event ID.
Returns:
An Event object.

findEvents

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.

Parameters:
city - The City object.
provinceState - The ProvinceState object.
eventType - The EventType object.
keyword - A keyword.
Returns:
A List of Event objects.

findUserEvents

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.

Parameters:
start - The start date.
end - The end date.
user - The User object.
Returns:
A List of Event objects.

saveAttendance

EventAttendance saveAttendance(EventAttendance attendance)
Saves an EventAttendance object.

Parameters:
attendance - The EventAttendance object.
Returns:
The saved object.

saveEvent

Event saveEvent(Event event)
Saves an Event.

Parameters:
event - The Event object.
Returns:
The saved object.