@Named(value="homeController") public class HomeController extends Object
| Constructor and Description |
|---|
HomeController()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
followEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Follow event by user.
|
List<es.uvigo.esei.dgss.teama.letta.entities.Event> |
getEvents()
Gets the last twenty events ordered by date.
|
Collection<es.uvigo.esei.dgss.teama.letta.entities.Event> |
getMainEvents()
Gets the five main events.
|
boolean |
isFollowing(es.uvigo.esei.dgss.teama.letta.entities.Event event)
Check if an user is following an event
|
public Collection<es.uvigo.esei.dgss.teama.letta.entities.Event> getMainEvents()
Eventpublic List<es.uvigo.esei.dgss.teama.letta.entities.Event> getEvents()
Eventpublic void followEvent(es.uvigo.esei.dgss.teama.letta.entities.Event event)
throws Exception
event - event to follow by userException - event received as null value or event just is
following by userCopyright © 2016. All rights reserved.