.name(Constants.NODEABLE_SUPER_ACCOUNT_NAME)
.build();
rootAccount = userService.createAccount(account);
}
JSONObject config = new JSONObjectBuilder().add("icon", "/images/nodebelly.jpg").build();
// we are bypassing the lifecycle here, but still firing proper events
User user = new User.Builder()
.username(Constants.NODEABLE_SYSTEM_USERNAME)
.password(superUserPassword)
.accountLocked(false)
.fullname("Nodeable")
.userStatus(User.UserStatus.ACTIVATED)
.roles(userService.getAdminRoles())
.account(rootAccount)
.alias("nodeable")
.userConfig(config)
.build();
userService.createUser(user);
}
// create it if it doesn't exist
if (getUser(Constants.NODEABLE_SUPER_USERNAME) == null) {
JSONObject config = new JSONObjectBuilder().add("icon", "/images/nodebelly.jpg").build();
// we are bypassing the lifecycle here, but still firing proper events
User user = new User.Builder()
.username(Constants.NODEABLE_SUPER_USERNAME)
.password(superUserPassword)