Package com.aquima.web.api.controller.v1
Class StartController
java.lang.Object
com.aquima.web.api.controller.v1.AbstractBaseController
com.aquima.web.api.controller.v1.StartController
@RestController("apiStartController")
@RequestMapping(path="/api/v1",
produces="application/json")
@ServerContext
public class StartController
extends AbstractBaseController
This controller is used specifically for clients that only accept JSON instead of HTML and have their own login
screen. This is the use case of the Blueriq mobile app.
- Since:
- 9.7
- Author:
- v.jansen, g.graat
-
Constructor Summary
ConstructorsConstructorDescriptionStartController
(com.blueriq.component.api.IAquimaEngineConfiguration config, com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager, FlowStarter flowStarter, com.blueriq.component.api.shortcut.IShortcutManager shortcutsManager, ProductionProperties productionProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
startProject
(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletRequest httpRequest, String projectName, String flow, String version, String languageCode, String aquimaUi, String theme, String channel) startShortcut
(String shortcutName, org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletRequest httpRequest) Methods inherited from class com.aquima.web.api.controller.v1.AbstractBaseController
handleConversionException, handleDecisionTreeNotExposedException, handleEmptySymptomException, handleFlowEndedException, handleForbiddenException, handleFunctionParameterException, handleFunctionValidationException, handleFunctionValidationException, handleMethodArgumentTypeMismatchException, handleRequestWardException, handleStartApplicationForbiddenException, handleStartFlowForbiddenException, handleStartShortcutForbiddenException, handleUnauthorizedException, handleUnknownApplicationException, handleUnknownDecisionTreeException, handleUnknownFlowException, handleUnknownFunctionFlowException, handleUnknownLanguageException, handleUnknownModuleException, handleUnknownSessionException, handleUnknownShortcutException, handleUnknownSubscriptionException, handleUnsupportedOpenApiSpecException, isAuthenticated
-
Constructor Details
-
StartController
@Autowired public StartController(com.blueriq.component.api.IAquimaEngineConfiguration config, com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager, FlowStarter flowStarter, com.blueriq.component.api.shortcut.IShortcutManager shortcutsManager, ProductionProperties productionProperties) - Parameters:
authorisationManager
- the authorisation managersessionManager
- the session managerflowStarter
- the flowstartershortcutsManager
- the shortcut managerproductionProperties
- holds production propertiesconfig
- aquima engine configuration
-
-
Method Details
-
setOpenIdConnectSettings
-
startShortcut
@PostMapping(path={"/start","/start/{shortcutName:.+}"}, params="!project") public BqConfiguration startShortcut(@PathVariable(required=false) String shortcutName, org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletRequest httpRequest) throws Exception - Throws:
Exception
-
startProject
@PostMapping(path="/start", params="project") public BqConfiguration startProject(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletRequest httpRequest, @RequestParam("project") String projectName, @RequestParam(value="flow",required=false) String flow, @RequestParam(value="version",required=false) String version, @RequestParam(value="languageCode",required=false) String languageCode, @RequestParam(value="ui",required=false) String aquimaUi, @RequestParam(value="theme",required=false) String theme, @RequestParam(value="channel",required=false) String channel) throws Exception - Throws:
Exception
-