@Test void testGetRole() { assertEquals("test", getRolename(new GrantedAuthoritySid("ROLE_test")).get()); }
private Role getRole(String rolename) { return dataService .query(RoleMetadata.ROLE, Role.class) .eq(RoleMetadata.NAME, rolename) .findOne(); }
UserRoleTools { private Role getRole(String rolename) { return dataService .query(RoleMetadata.ROLE, Role.class) .eq(RoleMetadata.NAME, rolename) .findOne(); } }
UserRoleTools { private Role getRole(String rolename) { return dataService .query(RoleMetadata.ROLE, Role.class) .eq(RoleMetadata.NAME, rolename) .findOne(); } UserRoleTools(
      UserService userService,
      DataService dataService,
      UserPermissionEvaluator userPermissionEvaluator); }
UserRoleTools { private Role getRole(String rolename) { return dataService .query(RoleMetadata.ROLE, Role.class) .eq(RoleMetadata.NAME, rolename) .findOne(); } UserRoleTools(
      UserService userService,
      DataService dataService,
      UserPermissionEvaluator userPermissionEvaluator); void checkRoleExists(String role); void checkUserExists(String user); List<Sid> getSids(List<String> users, List<String> roles); static Optional<String> getUsername(Sid sid); static Optional<String> getRolename(Sid sid); static String getName(Sid sid); List<Sid> getRolesForSid(Sid sid); }
UserRoleTools { private Role getRole(String rolename) { return dataService .query(RoleMetadata.ROLE, Role.class) .eq(RoleMetadata.NAME, rolename) .findOne(); } UserRoleTools(
      UserService userService,
      DataService dataService,
      UserPermissionEvaluator userPermissionEvaluator); void checkRoleExists(String role); void checkUserExists(String user); List<Sid> getSids(List<String> users, List<String> roles); static Optional<String> getUsername(Sid sid); static Optional<String> getRolename(Sid sid); static String getName(Sid sid); List<Sid> getRolesForSid(Sid sid); static final String ANONYMOUS; }