public class AdminController extends AgentController
| Constructor and Description |
|---|
AdminController()
Constrcutor of the Class
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUser()
Create a new user.
|
void |
delUser(User model)
Prompt the user and set the given model inactive on the database
|
void |
editUser(User model)
Edit the given user.
|
Code |
getAssignedCode(int id)
Check the Code list and return the Code Model object based on the given ID
|
void |
loadData()
Loads the Data of this formular.
|
boolean |
setupAgent()
Method which is called every time the Agent is initialized
|
addChild, getParent, receiveMessage, removeCildren, setParentpublic boolean setupAgent()
setupAgent in class AgentControllerpublic Code getAssignedCode(int id)
id - the Code ID which should be returnedpublic void loadData()
public void editUser(User model)
model - the model which should be editedpublic void addUser()
public void delUser(User model)
model - model which should be deleted