@RestController @RequestMapping(value="/sandbox") public class SandboxController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
UNAUTHORIZED_ERROR |
| Constructor and Description |
|---|
SandboxController(SandboxService sandboxService,
UserService userService,
SandboxInviteService sandboxInviteService,
OAuthService oAuthService) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkForSandboxById(String id) |
Sandbox |
createSandbox(javax.servlet.http.HttpServletRequest request,
Sandbox sandbox) |
void |
deleteSandboxById(javax.servlet.http.HttpServletRequest request,
String id) |
Sandbox |
getSandboxById(javax.servlet.http.HttpServletRequest request,
String id) |
String |
getSandboxById(String id) |
List<Sandbox> |
getSandboxesByMember(javax.servlet.http.HttpServletRequest request,
String userIdEncoded) |
void |
removeSandboxMember(javax.servlet.http.HttpServletRequest request,
String id,
String userIdEncoded) |
void |
sandboxLogin(javax.servlet.http.HttpServletRequest request,
String id,
String userIdEncoded) |
void |
updateSandboxById(javax.servlet.http.HttpServletRequest request,
String id,
Sandbox sandbox) |
void |
updateSandboxMemberRole(javax.servlet.http.HttpServletRequest request,
String id,
String userIdEncoded,
Role role,
boolean add) |
public static final String UNAUTHORIZED_ERROR
@Inject public SandboxController(SandboxService sandboxService, UserService userService, SandboxInviteService sandboxInviteService, OAuthService oAuthService)
@PostMapping(consumes="application/json",
produces="application/json")
@ResponseBody
public Sandbox createSandbox(javax.servlet.http.HttpServletRequest request,
@RequestBody
Sandbox sandbox)
throws UnsupportedEncodingException
UnsupportedEncodingException@GetMapping(params="lookUpId",
produces="application/json")
@ResponseBody
public String checkForSandboxById(@RequestParam(value="lookUpId")
String id)
@GetMapping(params="sandboxId",
produces="application/json")
@ResponseBody
public String getSandboxById(@RequestParam(value="sandboxId")
String id)
@GetMapping(value="/{id}",
produces="application/json")
@ResponseBody
public Sandbox getSandboxById(javax.servlet.http.HttpServletRequest request,
@PathVariable
String id)
@DeleteMapping(value="/{id}",
produces="application/json")
public void deleteSandboxById(javax.servlet.http.HttpServletRequest request,
@PathVariable
String id)
@PutMapping(value="/{id}",
produces="application/json")
public void updateSandboxById(javax.servlet.http.HttpServletRequest request,
@PathVariable
String id,
@RequestBody
Sandbox sandbox)
throws UnsupportedEncodingException
UnsupportedEncodingException@GetMapping(produces="application/json",
params="userId")
@ResponseBody
public List<Sandbox> getSandboxesByMember(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="userId")
String userIdEncoded)
throws UnsupportedEncodingException
UnsupportedEncodingException@PutMapping(value="/{id}",
consumes="application/json",
params="removeUserId")
public void removeSandboxMember(javax.servlet.http.HttpServletRequest request,
@PathVariable
String id,
@RequestParam(value="removeUserId")
String userIdEncoded)
throws UnsupportedEncodingException
UnsupportedEncodingException@PutMapping(value="/{id}",
consumes="application/json",
params={"editUserRole","role","add"})
public void updateSandboxMemberRole(javax.servlet.http.HttpServletRequest request,
@PathVariable
String id,
@RequestParam(value="editUserRole")
String userIdEncoded,
@RequestParam(value="role")
Role role,
@RequestParam(value="add")
boolean add)
throws UnsupportedEncodingException
UnsupportedEncodingException@PostMapping(value="/{id}/login",
params="userId")
public void sandboxLogin(javax.servlet.http.HttpServletRequest request,
@PathVariable
String id,
@RequestParam(value="userId")
String userIdEncoded)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2014–2018 Healthcare Services Platform Consortium. All rights reserved.