Examples of IPortletWindowId


Examples of org.jasig.portal.portlet.om.IPortletWindowId

        final HttpServletRequest request = this.portalRequestUtils.getOriginalPortalRequest(portletRequest);
        final IPerson person = this.personManager.getPerson(request);
       
        final IPortletWindow portletWindow = this.portletWindowRegistry.getPortletWindow(request, portletWindowId);
       
        final IPortletWindowId delegationParentId = portletWindow.getDelegationParent();
        if (delegationParentId == null) {
            throw new IllegalArgumentException("Portlet window '" + portletWindow + "' is not a delegate window and cannot be delgated to.");
        }
       
        final IPortletWindow parentPortletWindow = this.portletWindowRegistry.getPortletWindow(request, delegationParentId);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

        return new PortletDelegationDispatcherImpl(portletWindow, parentPortletWindow, person.getID(), this.portalRequestUtils, this.personManager, this.portletRenderer, this.portletRequestParameterManager, this);
    }

    @Override
    public void setParentPortletUrl(HttpServletRequest request, PortletUrl parentPortletUrl) {
        final IPortletWindowId parentPortletWindowId = parentPortletUrl.getTargetWindowId();
        request.setAttribute(DELEGATE_PARENT_PORTLET_URL_PREFIX + parentPortletWindowId.getStringId(), parentPortletUrl);
    }
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

        if (delegationRequest == null) {
            return;
        }
       
        //Get or create the parent portlet URL
        final IPortletWindowId parentPortletWindowId = this.parentPortletWindow.getPortletWindowId();
        final PortletUrl parentPortletUrl = new PortletUrl(parentPortletWindowId);
        this.portletDelegationManager.setParentPortletUrl(request, parentPortletUrl);
       
        final DelegateState delegateState = delegationRequest.getDelegateState();
        if (delegateState != null) {
            final IPortletWindowId portletWindowId = this.portletWindow.getPortletWindowId();
           
            //Get or create the delegate portlet URL
            PortletUrl delegatePortletUrl = this.portletRequestParameterManager.getPortletRequestInfo(request, portletWindowId);
            if (delegatePortletUrl == null) {
                delegatePortletUrl = new PortletUrl(portletWindowId);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

        final PortletDelegationLocator portletDelegationLocator = (PortletDelegationLocator)renderRequest.getAttribute(PortletDelegationLocator.PORTLET_DELECATION_LOCATOR_ATTR);
       
        final String sessionKey = this.sessionKeyPrefix + this.fname;

        final PortletSession portletSession = renderRequest.getPortletSession();
        IPortletWindowId portletWindowId = (IPortletWindowId)portletSession.getAttribute(sessionKey);

        final PortletDelegationDispatcher portletDelegationDispatcher;
        final DelegateState delegateState;
        //No id in session, create a new dispatcher
        if (portletWindowId == null) {
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getOrCreatePortletEntity(portDef1, "sub1", 1)).andReturn(portletEntity);
       
        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");

        final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
       
        final IPortletRenderer portletRenderer = createMock(IPortletRenderer.class);
        expect(portletRenderer.doInit(portletEntity, null, portalControlStructures.getHttpServletRequest(), response))
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

       
       
        final IPortletDefinitionRegistry portletDefinitionRegistry = createMock(IPortletDefinitionRegistry.class);
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);

        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
        this.springPortletChannel.setPortletWidnowId(channelStaticData, portletWindowId);
       
        final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
       
        final PortletUrl portletUrl = new PortletUrl(portletWindowId);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

       
       
        final ChannelRuntimeData channelRuntimeData = new ChannelRuntimeData();
       
       
        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
        this.springPortletChannel.setPortletWidnowId(channelStaticData, portletWindowId);

       
        final IPortletWindow portletWindow = createMock(IPortletWindow.class);
       
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

       
       
        final ChannelRuntimeData channelRuntimeData = new ChannelRuntimeData();
       
       
        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
        this.springPortletChannel.setPortletWidnowId(channelStaticData, portletWindowId);

       
        final IPortletWindow portletWindow = createMock(IPortletWindow.class);
        final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

       
       
        final ChannelRuntimeData channelRuntimeData = new ChannelRuntimeData();
       
       
        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
        this.springPortletChannel.setPortletWidnowId(channelStaticData, portletWindowId);

        final IPortletDefinitionId portletDefinitionId = new MockPortletDefinitionId("def1");
       
        final IPortletDefinition portletDefinition = createMock(IPortletDefinition.class);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletWindowId

       
       
        final ChannelRuntimeData channelRuntimeData = new ChannelRuntimeData();
       
       
        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
        this.springPortletChannel.setPortletWidnowId(channelStaticData, portletWindowId);

       
        final IPortletDefinitionId portletDefinitionId = new MockPortletDefinitionId("def1");
       
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.