<role-map url="xml:path=WEB-INF/role-map.xml"/>
The format of the static file is as follows: <role-map> <role name="admin" user="Harry Potter"/> ... </users>
<role-map> <role name="admin" user="Harry Potter"/> ... </users>
5051525354555657585960
return response; } private Role toModel(RoleData model) { Role role = new Role(); role.id = "" + model.getId(); role.name = model.getName(); // if (model.hasDescription()) { // role.description = model.getDescription(); // }
205206207208209210211212213214
return response; } private Role toModel(RoleData data) { Role role = new Role(); role.id = "" + data.getId(); role.name = data.getName(); return role; }
125126127128129130131132133134135
RoleData role = identityService.findRole(roleId); if (role == null) { throw new IllegalStateException(); } Role model = toModel(project, role); user.roles.add(model); } } log.info("Returning auth: {}", response);
189190191192193194195196197198199
return Lists.newArrayList(v2Endpoints.values()); } private Role toModel(ProjectData project, RoleData role) { Role model = new Role(); model.id = "" + role.getId(); model.name = role.getName(); if (project != null) { model.tenantId = "" + project.getId(); }