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 IEventActionevent - - event to addPhotoAlbumExceptionpublic void deleteEvent(Event event) throws PhotoAlbumException
deleteEvent in interface IEventActionevent - - event to deletePhotoAlbumExceptionpublic void editEvent(Event event) throws PhotoAlbumException
editEvent in interface IEventActionevent - - event to SynchronizePhotoAlbumExceptionpublic void resetEvent(Event event)
resetEvent in interface IEventActionevent - - event to Synchronizepublic List<Event> getAllEvents()
getAllEvents in interface IEventActionpublic List<EventCategory> getEventCategories()
getEventCategories in interface IEventActionpublic Event getEventById(long id)
getEventById in interface IEventActionpublic EventCategory getEventCategoryById(long id)
getEventCategoryById in interface IEventActionpublic Event getEventByName(String name)
getEventByName in interface IEventActionpublic List<Event> getEventsByCategory(EventCategory ec)
getEventsByCategory in interface IEventActionCopyright © 2016. All rights reserved.