@RestController public class UsersController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ORG_USERS_URL |
| Constructor and Description |
|---|
UsersController(UsersService usersService,
UsersService priviledgedUsersService,
UserDetailsFinder detailsFinder,
BlacklistEmailValidator emailValidator) |
| Modifier and Type | Method and Description |
|---|---|
User |
createOrgUser(UserRequest userRequest,
String org,
org.springframework.security.core.Authentication auth) |
void |
deleteUserFromOrg(String org,
String user,
org.springframework.security.core.Authentication auth) |
Collection<User> |
getOrgUsers(String org,
org.springframework.security.core.Authentication auth) |
UserRole |
updateOrgUserRole(UserRolesRequest userRolesRequest,
String org,
String user,
org.springframework.security.core.Authentication auth) |
public static final String ORG_USERS_URL
@Autowired public UsersController(UsersService usersService, UsersService priviledgedUsersService, UserDetailsFinder detailsFinder, BlacklistEmailValidator emailValidator)
@RequestMapping(value="/rest/orgs/{org}/users",
method=GET,
produces="application/json")
public Collection<User> getOrgUsers(@PathVariable
String org,
org.springframework.security.core.Authentication auth)
@RequestMapping(value="/rest/orgs/{org}/users",
method=POST,
produces="application/json",
consumes="application/json")
public User createOrgUser(@RequestBody
UserRequest userRequest,
@PathVariable
String org,
org.springframework.security.core.Authentication auth)
@RequestMapping(value="/rest/orgs/{org}/users/{user}",
method=POST,
produces="application/json",
consumes="application/json")
public UserRole updateOrgUserRole(@RequestBody
UserRolesRequest userRolesRequest,
@PathVariable
String org,
@PathVariable
String user,
org.springframework.security.core.Authentication auth)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.