public void initialise(String email) { if (AdminUser.all().count() == 0) { AdminUser adminUser = new AdminUser(); adminUser.setEmail(email); adminUser.insert(); } }
public Boolean validUser(String email) { return AdminUser.all().filter("email", email).get() != null; }