@Named(value="homeController") public class HomeController extends Object
| Constructor and Description |
|---|
HomeController()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
attendEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Attend event by user.
|
void |
cancelEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Cancel an event by its creator.
|
List<es.uvigo.esei.dgss.teama.letta.entities.Event> |
getEvents()
Gets the last twenty events ordered by date.
|
String |
getIcon(String category)
Return a icon to show with library
|
Collection<es.uvigo.esei.dgss.teama.letta.entities.Event> |
getMainEvents()
Gets the five main events.
|
boolean |
isAttending(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Check if an user is attending an event
|
boolean |
isCreator(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Check if the logged user is the creator of an event
|
void |
unAttendEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Unnattend an event by an user.
|
public Collection<es.uvigo.esei.dgss.teama.letta.entities.Event> getMainEvents()
Eventpublic List<es.uvigo.esei.dgss.teama.letta.entities.Event> getEvents()
Eventpublic void attendEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
throws Exception
event - event to attend by userException - event received as null value or event just is
attending by userpublic boolean isAttending(es.uvigo.esei.dgss.teama.letta.entities.Event event)
throws Exception
event - event to checkException - if event is received as null valuepublic boolean isCreator(es.uvigo.esei.dgss.teama.letta.entities.Event event)
throws Exception
event - event to checkException - if event is received as null valuepublic void unAttendEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
throws Exception
event - event to unnatendException - event received as null valuepublic void cancelEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
throws Exception
event - event to cancelException - event received as null valueCopyright © 2017. All rights reserved.