public class AdminEventsController extends Object
Events
and perform any other admin-level operation.| Constructor and Description |
|---|
AdminEventsController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String summary,
String detail) |
void |
cancelEvent(es.uvigo.esei.dgss.letta.domain.entities.Event event)
Cancels the selected
Event. |
void |
editEvent(es.uvigo.esei.dgss.letta.domain.entities.Event event)
Redirects to the form for edit the selected
Event |
org.primefaces.model.LazyDataModel<es.uvigo.esei.dgss.letta.domain.entities.Event> |
getEvents() |
void |
init() |
void |
removeEvent(es.uvigo.esei.dgss.letta.domain.entities.Event event)
Removes the selected
Event. |
void |
setEvents(org.primefaces.model.LazyDataModel<es.uvigo.esei.dgss.letta.domain.entities.Event> events) |
@PostConstruct public void init()
public void cancelEvent(es.uvigo.esei.dgss.letta.domain.entities.Event event)
throws SecurityException,
IllegalArgumentException,
es.uvigo.esei.dgss.letta.service.util.exceptions.EventIsCancelledException,
es.uvigo.esei.dgss.letta.service.util.exceptions.IllegalEventOwnerException
Event.event - The Event to cancel.SecurityException - If the currently identified User is not found in the
database.IllegalArgumentException - if the Event does not exist.es.uvigo.esei.dgss.letta.service.util.exceptions.EventIsCancelledException - if the Event is still cancelled.es.uvigo.esei.dgss.letta.service.util.exceptions.IllegalEventOwnerException - if the Event does not exist.public void removeEvent(es.uvigo.esei.dgss.letta.domain.entities.Event event)
Event.event - The Event to remove.public void editEvent(es.uvigo.esei.dgss.letta.domain.entities.Event event)
throws IOException
Eventevent - The Event selected for edit.IOExceptionpublic org.primefaces.model.LazyDataModel<es.uvigo.esei.dgss.letta.domain.entities.Event> getEvents()
public void setEvents(org.primefaces.model.LazyDataModel<es.uvigo.esei.dgss.letta.domain.entities.Event> events)
Copyright © 2016. All rights reserved.