Package org.jasig.portal.api.portlet

Examples of org.jasig.portal.api.portlet.DelegationActionResponse


        final String redirectLocation = capturingResponse.getRedirectLocation();
       
        //If the delegate portlet sent a redirect use the parent action response to send it
        if (!IPortletDelegationManager.DELEGATE_ACTION_REDIRECT_TOKEN.equals(redirectLocation)) {
            actionResponse.sendRedirect(redirectLocation);
            return new DelegationActionResponse(this.getDelegateState(), redirectLocation);
        }
       
        final PortletUrl portletUrl = this.portletDelegationManager.getDelegatePortletActionRedirectUrl(actionRequest);
        return new DelegationActionResponse(this.getDelegateState(), portletUrl);
    }
View Full Code Here


          throw new IllegalStateException("Cannot execute configModeAciton without a delegate window ID in the session for key: " + RenderPortletTag.DEFAULT_SESSION_KEY_PREFIX + fname);
      }
     
      final PortletDelegationDispatcher requestDispatcher = this.portletDelegationLocator.getRequestDispatcher(actionRequest, portletWindowId);
     
      final DelegationActionResponse delegationResponse = requestDispatcher.doAction(actionRequest, actionResponse);
      final PortletUrl renderUrl = delegationResponse.getRenderUrl();
      final DelegateState delegateState = delegationResponse.getDelegateState();
        if (renderUrl == null ||
              (renderUrl.getPortletMode() != null && !IPortletAdaptor.CONFIG.equals(renderUrl.getPortletMode())) ||
              !IPortletAdaptor.CONFIG.equals(delegateState.getPortletMode())) {
         
          //The portlet sent a redirect OR changed it's mode away from CONFIG, assume it is done
View Full Code Here

          throw new IllegalStateException("Cannot execute configModeAciton without a delegate window ID in the session for key: " + RenderPortletTag.DEFAULT_SESSION_KEY_PREFIX + fname);
      }
     
      final PortletDelegationDispatcher requestDispatcher = this.portletDelegationLocator.getRequestDispatcher(actionRequest, portletWindowId);
     
      final DelegationActionResponse delegationResponse = requestDispatcher.doAction(actionRequest, actionResponse);
     
      final String redirectLocation = delegationResponse.getRedirectLocation();
      final DelegateState delegateState = delegationResponse.getDelegateState();
        if (redirectLocation != null ||
              (delegationResponse.getPortletMode() != null && !IPortletRenderer.CONFIG.equals(delegationResponse.getPortletMode())) ||
              !IPortletRenderer.CONFIG.equals(delegateState.getPortletMode())) {
         
          //The portlet sent a redirect OR changed it's mode away from CONFIG, assume it is done
          return true;
      }
View Full Code Here

            final String renderUrlParamName = portalActionUrlBuilder.getRenderUrlParamName();
           
            //clear out the redirect from the delegate, leave it up to the parent if the redirect should happen
            portalActionUrlBuilder.setRedirectLocation(null, null);
           
            return new DelegationActionResponse(this.getDelegateState(), redirectLocation, renderUrlParamName);
        }
       
       
        //No redirect so get the portlet's url builder and copy the state-changing data into the delegate response
        final IPortletUrlBuilder portletUrlBuilder = portalActionUrlBuilder.getPortletUrlBuilder(portletWindowId);
       
        final WindowState windowState = portletUrlBuilder.getWindowState();
        final PortletMode portletMode = portletUrlBuilder.getPortletMode();
        final Map<String, String[]> parameters = portletUrlBuilder.getParameters();
       
        return new DelegationActionResponse(this.getDelegateState(), portletMode, windowState, parameters);
    }
View Full Code Here

TOP

Related Classes of org.jasig.portal.api.portlet.DelegationActionResponse

Copyright © 2018 www.massapicom. 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.