package net.explorviz.security.services;

import java.util.ArrayList;
import java.util.List;
import net.explorviz.shared.security.model.roles.Role;
import org.jvnet.hk2.annotations.Service;

@Service
public class RoleService {

  public List<Role> getAllRoles() {

    final List<Role> roleList = new ArrayList<>();

    // start at 2, because of hard-coded UserSettings id
    roleList.add(new Role(2L, "admin"));

    return roleList;
  }

}

@@ -407,16 +407,56 @@
 dmin%22));
+%0A    roleList.add(new Role(3L, %22user%22));
 %0A%0A    re

Add role >user<