Class StartController

java.lang.Object
com.aquima.web.controller.StartController

@Controller @ServerContext public class StartController extends Object
This class is the main controller for creating an Aquima session and executing a flow.
Since:
8.0
Author:
Danny Roest
  • Field Details Link icon

  • Constructor Details Link icon

    • StartController Link icon

      @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, MvcRedirectHelper redirectHelper, @Qualifier("defaultEntryPoint") Optional<String> defaultEntryPoint)
      Creates a start which is the main controller for starting a aquima-interactions flow.
      Parameters:
      config - the Aquima Engine configuration
      authorisationManager - the authorisation manager
      sessionManager - the session manager
      flowStarter - the flowstarter
      shortcutsManager - the shortcut manager
      productionProperties - holds production properties
      redirectHelper - the mvc redirect helper
      defaultEntryPoint - the default entry point to redirect to
  • Method Details Link icon

    • setOpenIdConnectSettings Link icon

      @Autowired(required=false) public void setOpenIdConnectSettings(OpenIdConnectSettings openIdConnectSettings)
    • startDefault Link icon

      @RequestMapping(value="/start", params={"!project","!loginSuccess","!close","!logout"}) public Object startDefault(org.springframework.web.context.request.WebRequest request)
    • startShortcut Link icon

      @RequestMapping(value="/start/{shortcut}", params={"!project","!loginSuccess","!close","!logout"}) public Object startShortcut(org.springframework.web.context.request.WebRequest request, @PathVariable("shortcut") String unsafeShortcut, @RequestParam(value="testPath",required=false) String testPath)
    • startSession Link icon

      @RequestMapping(value="/start", params="project") public Object startSession(org.springframework.web.context.request.WebRequest request, @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, @RequestParam(value="testPath",required=false) String testPath, @RequestParam(value="devtools",required=false) String devTools)
    • createSession Link icon

      @RequestMapping(value="/start", params={"create","project"}) public void createSession(org.springframework.web.context.request.WebRequest request, @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, jakarta.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • loginSuccess Link icon

      @RequestMapping(value="/start", params="loginSuccess") public String loginSuccess(org.springframework.web.context.request.WebRequest request)
    • closeSession Link icon

      @RequestMapping(value="/start", params="close") public String closeSession(@RequestParam(value="sessionId",required=false) String sessionId)
    • logout Link icon

      @RequestMapping(value="/start", params="logout") public Object logout(@RequestParam(value="logout",required=false) Boolean logout)
      This method closes all Aquima sessions and redirects to the logout.html.

      Note: this method returns a string, but its signature declares Object as return type, so it may be mocked using MvcUriComponentsBuilder.fromMethodCall(Object), which requires that the return type is not final (java.lang.String is final).

      Parameters:
      logout - boolean wheter to log out (unused).
      Returns:
      The view (string)