RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.model.actions
Class EventAction

java.lang.Object
  extended by org.richfaces.photoalbum.model.actions.EventAction
All Implemented Interfaces:
IEventAction

public class EventAction
extends Object
implements IEventAction


Constructor Summary
EventAction()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventAction

public EventAction()
Method Detail

addEvent

public void addEvent(Event event)
              throws PhotoAlbumException
Persist event entity to database

Specified by:
addEvent in interface IEventAction
Parameters:
event - - event to add
Throws:
PhotoAlbumException

deleteEvent

public void deleteEvent(Event event)
                 throws PhotoAlbumException
Remove event entity from database

Specified by:
deleteEvent in interface IEventAction
Parameters:
event - - event to delete
Throws:
PhotoAlbumException

editEvent

public void editEvent(Event event)
               throws PhotoAlbumException
Synchronize state of event entity with database

Specified by:
editEvent in interface IEventAction
Parameters:
event - - event to Synchronize
Throws:
PhotoAlbumException

resetEvent

public void resetEvent(Event event)
Refresh state of given event

Specified by:
resetEvent in interface IEventAction
Parameters:
event - - event to Synchronize

getAllEvents

public List<Event> getAllEvents()
Specified by:
getAllEvents in interface IEventAction

getEventCategories

public List<EventCategory> getEventCategories()
Specified by:
getEventCategories in interface IEventAction

getEventById

public Event getEventById(long id)
Specified by:
getEventById in interface IEventAction

getEventCategoryById

public EventCategory getEventCategoryById(long id)
Specified by:
getEventCategoryById in interface IEventAction

getEventByName

public Event getEventByName(String name)
Specified by:
getEventByName in interface IEventAction

getEventsByCategory

public List<Event> getEventsByCategory(EventCategory ec)
Specified by:
getEventsByCategory in interface IEventAction

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.