@Named(value="eventController") @RequestScoped public class EventController extends Object implements Serializable
| Constructor and Description |
|---|
EventController()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
createEvent()
Creates an event where the organizer and creator is the login user.
|
es.uvigo.esei.dgss.teama.letta.entities.Event |
getCurrentEvent()
Gets the current event to be managed.
|
Date |
getEnd()
Gets the end date of the event.
|
List<es.uvigo.esei.dgss.teama.letta.entities.Event> |
getMyEvents()
Obtains all the event from the logged user
|
Date |
getStart()
Gets the start date of the event.
|
boolean |
isModifiable(es.uvigo.esei.dgss.teama.letta.entities.Event e)
Checks if the given event can be changed.
|
boolean |
isMyEventsEmpty()
Checks if myEvents is empty.
|
void |
setCurrentEvent(es.uvigo.esei.dgss.teama.letta.entities.Event currentEvent)
Sets the current event to be managed.
|
void |
setEnd(Date end)
Sets the end date of the event.
|
void |
setStart(Date start)
Sets the start date of the event.
|
public String createEvent()
public Date getStart()
public void setStart(Date start)
start - the start date.public Date getEnd()
public void setEnd(Date end)
end - the end date.public es.uvigo.esei.dgss.teama.letta.entities.Event getCurrentEvent()
public void setCurrentEvent(es.uvigo.esei.dgss.teama.letta.entities.Event currentEvent)
currentEvent - the new event.public List<es.uvigo.esei.dgss.teama.letta.entities.Event> getMyEvents()
public boolean isMyEventsEmpty()
public boolean isModifiable(es.uvigo.esei.dgss.teama.letta.entities.Event e)
e - the given eventCopyright © 2017. All rights reserved.