@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.
|
String |
getCategory()
Returns the category of this event.
|
String |
getDescription()
Returns the description of this event.
|
Date |
getEnd()
Returns the end of this event.
|
String |
getHead()
Returns the head of this event.
|
String |
getLocation()
Returns the location of this event.
|
String |
getMessage()
Returns the error message.
|
List<es.uvigo.esei.dgss.teama.letta.entities.Event> |
getMyEvents()
Obtains all the event from the logged user
|
Date |
getStart()
Returns the start of this event.
|
String |
getTitle()
Returns the title of this event.
|
void |
setCategory(String category)
Sets the category of this event.
|
void |
setDescription(String description)
Sets the description of this event.
|
void |
setEnd(Date end)
Sets the end of this event.
|
void |
setHead(String head)
Sets the head of this event.
|
void |
setLocation(String location)
Sets the location of this event.
|
void |
setMessage(String message)
Sets the error message
|
void |
setStart(Date start)
Sets the start of this event.
|
void |
setTitle(String title)
Sets the title of this event.
|
public String getMessage()
public void setMessage(String message)
message - the error messagepublic String getTitle()
public void setTitle(String title)
title - the title of this event.public String getHead()
public void setHead(String head)
head - the head of this event.public String getDescription()
public void setDescription(String description)
description - the description of this event.public String getCategory()
public void setCategory(String category)
category - the category of this event.public String getLocation()
public void setLocation(String location)
location - the location of this event.public Date getStart()
public void setStart(Date start)
start - the start of this event.public Date getEnd()
public void setEnd(Date end)
end - the end of this event.public String createEvent() throws ParseException
ParseExceptionpublic List<es.uvigo.esei.dgss.teama.letta.entities.Event> getMyEvents()
Copyright © 2016. All rights reserved.