Examples of DelegationRequest


Examples of edu.uiuc.ncsa.security.delegation.client.request.DelegationRequest

            if (additionalParameters.get(getEnvironment().getConstants().get(CALLBACK_URI_KEY)) == null) {
                additionalParameters.put(getEnvironment().getConstants().get(CALLBACK_URI_KEY), getEnvironment().
                        getCallback().toString());
            }

            DelegationRequest daReq = new DelegationRequest();
            daReq.setParameters(additionalParameters);
            daReq.setClient(getEnvironment().getClient());
            daReq.setBaseUri(getEnvironment().getAuthorizationUri());
            DelegationResponse daResp = (DelegationResponse) getEnvironment().getDelegationService().process(daReq);
            mpdsResponse.setRedirect(daResp.getRedirectUri());
            return mpdsResponse;
        } catch (Throwable e) {
            if (e instanceof RuntimeException) {
View Full Code Here

Examples of edu.uiuc.ncsa.security.delegation.client.request.DelegationRequest

            if (additionalParameters.get(getEnvironment().getConstants().get(CALLBACK_URI_KEY)) == null) {
                additionalParameters.put(getEnvironment().getConstants().get(CALLBACK_URI_KEY), getEnvironment()
                        .getCallback().toString());
            }

            DelegationRequest daReq = new DelegationRequest();
            daReq.setParameters(additionalParameters);
            daReq.setClient(getEnvironment().getClient());
            daReq.setBaseUri(getEnvironment().getAuthorizationUri());
            DelegationResponse daResp = (DelegationResponse) getEnvironment().getDelegationService().process(daReq);
            mpdsResponse.setRedirect(daResp.getRedirectUri());
            return mpdsResponse;
        } catch (Throwable e) {
            if (e instanceof RuntimeException) {
View Full Code Here

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

        else {
            portletDelegationDispatcher = portletDelegationLocator.getRequestDispatcher(renderRequest, portletWindowId);
            delegateState = null;
        }

        final DelegationRequest delegationRequest = new DelegationRequest();
        delegationRequest.setDelegateState(delegateState);
       
        //Setup base for portlet URLs
        delegationRequest.setParentPortletMode(this.parentUrlMode);
        delegationRequest.setParentWindowState(this.parentUrlState);
        delegationRequest.setParentParameters(this.parentUrlParameters);

        final JspWriter out = this.pageContext.getOut();
        try {
            portletDelegationDispatcher.doRender(renderRequest, renderResponse, delegationRequest, out);
        }
View Full Code Here

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

     * @see org.springframework.web.servlet.View#render(java.util.Map, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    @Override
    public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
        final IPortletWindowId portletWindowId = (IPortletWindowId)model.get(DELEGATE_PORTLET_WINDOW_ID);
        final DelegationRequest delegationRequest = (DelegationRequest)model.get(DELEGATE_REQUEST);
       
        final PortletRequest portletRequest = (PortletRequest)request.getAttribute(Constants.PORTLET_REQUEST);
        final PortletResponse portletResponse = (PortletResponse)request.getAttribute(Constants.PORTLET_RESPONSE);
       
        final PortletDelegationDispatcher requestDispatcher = portletDelegationLocator.getRequestDispatcher(portletRequest, portletWindowId);
View Full Code Here

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

        if (parentPortletWindowId != null) {
            //Get the portal url builder that targets the parent
            final IPortalUrlBuilder portalUrlBuilder = this.getPortalUrlBuilderByPortletWindow(request, parentPortletWindowId, urlType);

            //See if there is additional delegation request data that needs to be added to the URL
            final DelegationRequest delegationRequest = this.portletDelegationManager.getDelegationRequest(request, portletWindowId);
            if (delegationRequest != null) {
                final IPortletUrlBuilder parentPortletUrlBuilder = portalUrlBuilder.getPortletUrlBuilder(parentPortletWindowId);
               
                final Map<String, List<String>> parentParameters = delegationRequest.getParentParameters();
                if (parentParameters != null) {
                    parentPortletUrlBuilder.setParameters(parentParameters);
                }
               
                final PortletMode parentPortletMode = delegationRequest.getParentPortletMode();
                if (parentPortletMode != null) {
                    parentPortletUrlBuilder.setPortletMode(parentPortletMode);
                }
               
                final WindowState parentWindowState = delegationRequest.getParentWindowState();
                if (parentWindowState != null) {
                    parentPortletUrlBuilder.setWindowState(parentWindowState);
                }
            }
           
View Full Code Here

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

        else {
            portletDelegationDispatcher = portletDelegationLocator.getRequestDispatcher(renderRequest, portletWindowId);
            delegateState = null;
        }

        final DelegationRequest delegationRequest = new DelegationRequest();
        delegationRequest.setDelegateState(delegateState);
       
        //Setup base for portlet URLs
        delegationRequest.setParentPortletMode(this.parentUrlMode);
        delegationRequest.setParentWindowState(this.parentUrlState);
        delegationRequest.setParentParameters(this.parentUrlParameters);

        final JspWriter out = this.pageContext.getOut();
        try {
            portletDelegationDispatcher.doRender(renderRequest, renderResponse, delegationRequest, new JspWriterPortletOutputHandler(out, renderResponse));
        }
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.