@RestController @RequestMapping(value="/launchScenario") public class LaunchScenarioController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
UNAUTHORIZED_ERROR |
| Constructor and Description |
|---|
LaunchScenarioController(LaunchScenarioService launchScenarioService,
AppService appService,
UserService userService,
UserPersonaService userPersonaService,
SandboxService sandboxService,
OAuthService oAuthService,
UserLaunchService userLaunchService) |
| Modifier and Type | Method and Description |
|---|---|
LaunchScenario |
createLaunchScenario(javax.servlet.http.HttpServletRequest request,
LaunchScenario launchScenario) |
void |
deleteLaunchScenario(javax.servlet.http.HttpServletRequest request,
Integer id) |
Iterable<LaunchScenario> |
getLaunchScenarios(javax.servlet.http.HttpServletRequest request,
String sandboxId) |
Iterable<LaunchScenario> |
getLaunchScenariosForApp(javax.servlet.http.HttpServletRequest request,
int appId) |
Iterable<LaunchScenario> |
getLaunchScenariosForPersona(javax.servlet.http.HttpServletRequest request,
int personaId) |
LaunchScenario |
updateLaunchScenario(javax.servlet.http.HttpServletRequest request,
Integer id,
LaunchScenario launchScenario) |
void |
updateLaunchTimestamp(javax.servlet.http.HttpServletRequest request,
Integer id,
LaunchScenario launchScenario) |
public static final String UNAUTHORIZED_ERROR
@Inject public LaunchScenarioController(LaunchScenarioService launchScenarioService, AppService appService, UserService userService, UserPersonaService userPersonaService, SandboxService sandboxService, OAuthService oAuthService, UserLaunchService userLaunchService)
@PostMapping(consumes="application/json",
produces="application/json")
@ResponseBody
public LaunchScenario createLaunchScenario(javax.servlet.http.HttpServletRequest request,
@RequestBody
LaunchScenario launchScenario)
@PutMapping(value="/{id}",
produces="application/json")
@ResponseBody
public LaunchScenario updateLaunchScenario(javax.servlet.http.HttpServletRequest request,
@PathVariable
Integer id,
@RequestBody
LaunchScenario launchScenario)
@PutMapping(value="/{id}/launched",
produces="application/json")
public void updateLaunchTimestamp(javax.servlet.http.HttpServletRequest request,
@PathVariable
Integer id,
@RequestBody
LaunchScenario launchScenario)
@GetMapping(produces="application/json",
params="appId")
@ResponseBody
public Iterable<LaunchScenario> getLaunchScenariosForApp(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="appId")
int appId)
@GetMapping(produces="application/json",
params="userPersonaId")
@ResponseBody
public Iterable<LaunchScenario> getLaunchScenariosForPersona(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="userPersonaId")
int personaId)
@DeleteMapping(value="/{id}",
produces="application/json")
@ResponseBody
public void deleteLaunchScenario(javax.servlet.http.HttpServletRequest request,
@PathVariable
Integer id)
@GetMapping(produces="application/json",
params="sandboxId")
@ResponseBody
public Iterable<LaunchScenario> getLaunchScenarios(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="sandboxId")
String sandboxId)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2014–2018 Healthcare Services Platform Consortium. All rights reserved.