Examples of PortletExternalContext


Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    actionRequest = new MockActionRequest();
    actionResponse = new MockActionResponse();
    renderRequest = new MockRenderRequest();
    renderResponse = new MockRenderResponse();
    actionContext = new PortletExternalContext(portletContext, actionRequest, actionResponse, controller
        .getFlowUrlHandler());
    renderContext = new PortletExternalContext(portletContext, renderRequest, renderResponse, controller
        .getFlowUrlHandler());

    flowHandler = new FlowHandler() {
      public String getFlowId() {
        return "foo";
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

  public void handleAction(ActionRequest request, ActionResponse response, Object handler) throws Exception {
    FlowHandler flowHandler = (FlowHandler) handler;
    populateConveniencePortletProperties(request);
    String flowExecutionKey = flowUrlHandler.getFlowExecutionKey(request);
    PortletExternalContext context = createPortletExternalContext(request, response);
    try {
      FlowExecutionResult result = flowExecutor.resumeExecution(flowExecutionKey, context);
      if (result.isPaused()) {
        flowUrlHandler.setFlowExecutionRenderParameter(result.getPausedKey(), response);
      } else if (result.isEnded()) {
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    request.setAttribute("portletMode", request.getPortletMode().toString());
    request.setAttribute("portletWindowState", request.getWindowState().toString());
  }

  protected PortletExternalContext createPortletExternalContext(PortletRequest request, PortletResponse response) {
    return new PortletExternalContext(getPortletContext(), request, response);
  }
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    return startFlow(flowHandler, input, request, response);
  }

  private ModelAndView startFlow(FlowHandler flowHandler, MutableAttributeMap input, RenderRequest request,
      RenderResponse response) {
    PortletExternalContext context = createPortletExternalContext(request, response);
    try {
      FlowExecutionResult result = flowExecutor.launchExecution(flowHandler.getFlowId(), input, context);
      if (result.isPaused()) {
        flowUrlHandler.setFlowExecutionInSession(result.getPausedKey(), request);
      }
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    }
  }

  private ModelAndView resumeFlow(String flowExecutionKey, FlowHandler flowHandler, RenderRequest request,
      RenderResponse response) throws IOException {
    PortletExternalContext context = createPortletExternalContext(request, response);
    try {
      flowExecutor.resumeExecution(flowExecutionKey, context);
      return null;
    } catch (FlowException e) {
      return handleException(e, flowHandler, request, response);
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    actionRequest = new MockActionRequest();
    actionResponse = new MockActionResponse();
    renderRequest = new MockRenderRequest();
    renderResponse = new MockRenderResponse();
    actionContext = new PortletExternalContext(portletContext, actionRequest, actionResponse,
        controller.getFlowUrlHandler());
    renderContext = new PortletExternalContext(portletContext, renderRequest, renderResponse,
        controller.getFlowUrlHandler());

    flowHandler = new FlowHandler() {
      public String getFlowId() {
        return "foo";
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

  public void handleAction(ActionRequest request, ActionResponse response, Object handler) throws Exception {
    FlowHandler flowHandler = (FlowHandler) handler;
    populateConveniencePortletProperties(request);
    String flowExecutionKey = flowUrlHandler.getFlowExecutionKey(request);
    PortletExternalContext context = createPortletExternalContext(request, response);
    try {
      FlowExecutionResult result = flowExecutor.resumeExecution(flowExecutionKey, context);
      if (result.isPaused()) {
        flowUrlHandler.setFlowExecutionRenderParameter(result.getPausedKey(), response);
      } else if (result.isEnded()) {
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    request.setAttribute("portletMode", request.getPortletMode().toString());
    request.setAttribute("portletWindowState", request.getWindowState().toString());
  }

  protected PortletExternalContext createPortletExternalContext(PortletRequest request, PortletResponse response) {
    return new PortletExternalContext(getPortletContext(), request, response);
  }
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

    }
  }

  private ModelAndView startFlowRender(FlowHandler flowHandler, MutableAttributeMap<Object> input,
      RenderRequest request, RenderResponse response) {
    PortletExternalContext context = createPortletExternalContext(request, response);
    try {
      FlowExecutionResult result = flowExecutor.launchExecution(flowHandler.getFlowId(), input, context);
      if (result.isPaused()) {
        flowUrlHandler.setFlowExecutionInSession(result.getPausedKey(), request);
      }
View Full Code Here

Examples of org.springframework.webflow.context.portlet.PortletExternalContext

      return handleException(flowEx, flowHandler, request, response);
    }
  }

  private ModelAndView startFlowResource(FlowHandler flowHandler, ResourceRequest request, ResourceResponse response) {
    PortletExternalContext context = createPortletExternalContext(request, response);
    try {
      FlowExecutionResult result = flowExecutor.launchExecution(flowHandler.getFlowId(), null, context);
      if (result.isPaused()) {
        flowUrlHandler.setFlowExecutionInSession(result.getPausedKey(), request);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.