public class AdminController extends Object
Users
and perform any other admin-level operation.| Constructor and Description |
|---|
AdminController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String summary,
String detail) |
void |
deleteUser(es.uvigo.esei.dgss.letta.domain.entities.User user)
Delete a
User |
void |
editUser(String login) |
List<es.uvigo.esei.dgss.letta.domain.entities.User> |
getUsers()
Retrieves a
List of Users that they exist in the
database. |
public List<es.uvigo.esei.dgss.letta.domain.entities.User> getUsers()
List of Users that they exist in the
database.Users.public void deleteUser(es.uvigo.esei.dgss.letta.domain.entities.User user)
throws SecurityException,
es.uvigo.esei.dgss.letta.service.util.exceptions.EventIsCancelledException,
es.uvigo.esei.dgss.letta.service.util.exceptions.IllegalEventOwnerException,
es.uvigo.esei.dgss.letta.service.util.exceptions.UserNotAuthorizedException
Useruser - the User to be removed.SecurityException - if the currently identified User is not found
in the database.es.uvigo.esei.dgss.letta.service.util.exceptions.EventIsCancelledException - if the Event is cancelled.es.uvigo.esei.dgss.letta.service.util.exceptions.IllegalEventOwnerException - if the Event does not exist.es.uvigo.esei.dgss.letta.service.util.exceptions.UserNotAuthorizedException - if the User is not authorized.public void editUser(String login) throws IOException
IOExceptionCopyright © 2016. All rights reserved.