return "./departmentHandler.xhtml";
}
public String createAdmin() {
if (handler.checkUsername(getAdminName())) {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Input Error", "Username already exists"));
return null;
} else {
Account newAccount = new Account();
newAccount.setUsername(getAdminName());
newAccount.setPassword(getAdminPassword());
handler.registerNewAccountDiv(newAccount, 21, getDepartment());
FacesContext.getCurrentInstance().addMessage("superHomeTop", new FacesMessage(FacesMessage.SEVERITY_INFO, "Success.", "Administrator Account Created"));
return "./superHome.xhtml";
}
}