public class EventAction extends Object implements IEventAction
Constructor and Description |
---|
EventAction() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event)
Persist event entity to database
|
void |
deleteEvent(Event event)
Remove event entity from database
|
void |
editEvent(Event event)
Synchronize state of event entity with database
|
List<Event> |
getAllEvents() |
Event |
getEventById(long id) |
Event |
getEventByName(String name) |
List<EventCategory> |
getEventCategories() |
EventCategory |
getEventCategoryById(long id) |
List<Event> |
getEventsByCategory(EventCategory ec) |
void |
resetEvent(Event event)
Refresh state of given event
|
public void addEvent(Event event) throws PhotoAlbumException
addEvent
in interface IEventAction
event
- - event to addPhotoAlbumException
public void deleteEvent(Event event) throws PhotoAlbumException
deleteEvent
in interface IEventAction
event
- - event to deletePhotoAlbumException
public void editEvent(Event event) throws PhotoAlbumException
editEvent
in interface IEventAction
event
- - event to SynchronizePhotoAlbumException
public void resetEvent(Event event)
resetEvent
in interface IEventAction
event
- - event to Synchronizepublic List<Event> getAllEvents()
getAllEvents
in interface IEventAction
public List<EventCategory> getEventCategories()
getEventCategories
in interface IEventAction
public Event getEventById(long id)
getEventById
in interface IEventAction
public EventCategory getEventCategoryById(long id)
getEventCategoryById
in interface IEventAction
public Event getEventByName(String name)
getEventByName
in interface IEventAction
public List<Event> getEventsByCategory(EventCategory ec)
getEventsByCategory
in interface IEventAction
Copyright © 2014. All Rights Reserved.