Examples of IPortletWindowId


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

       
        if (windowInstanceId.startsWith(TRANSIENT_WINDOW_ID_PREFIX)) {
            return this.getTransientPortletWindow(request, windowInstanceId, portletEntityId);
        }
       
        final IPortletWindowId portletWindowId = this.createPortletWindowId(windowInstanceId, portletEntityId);
        return this.getPortletWindow(request, portletWindowId);
    }
View Full Code Here

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

    public IPortletWindow createDefaultPortletWindow(HttpServletRequest request, IPortletEntityId portletEntityId) {
        Validate.notNull(request, "request can not be null");
        Validate.notNull(portletEntityId, "portletEntityId can not be null");

        //Create the window
        final IPortletWindowId portletWindowId = this.getDefaultPortletWindowId(portletEntityId);
        final IPortletWindow portletWindow = this.createPortletWindow(request, portletWindowId, portletEntityId);
       
        //Store it in the request
        this.storePortletWindow(request, portletWindow);
       
View Full Code Here

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

   
    public IPortletWindow getOrCreateDefaultPortletWindow(HttpServletRequest request, IPortletEntityId portletEntityId) {
        Validate.notNull(request, "request can not be null");
        Validate.notNull(portletEntityId, "portletEntityId can not be null");
       
        final IPortletWindowId portletWindowId = this.getDefaultPortletWindowId(portletEntityId);
       
        //Try the get
        IPortletWindow portletWindow = this.getPortletWindow(request, portletWindowId);
       
        //If nothing returned by the get create a new one.
View Full Code Here

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

        Validate.notNull(request, "request can not be null");
        Validate.notNull(portletEntityId, "portletEntityId can not be null");
        Validate.notNull(delegationParentId, "delegationParentId can not be null");

        //Create the window
        final IPortletWindowId portletWindowId = this.getDefaultPortletWindowId(portletEntityId);
        final IPortletWindow portletWindow = this.createPortletWindow(request, portletWindowId, portletEntityId, delegationParentId);
       
        //Store it in the request
        this.storePortletWindow(request, portletWindow);
       
View Full Code Here

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

       
        //Load the person the request is for
        final IPerson person = this.personManager.getPerson(httpServletRequest);
       
        //Load the portlet descriptor for the request
        final IPortletWindowId portletWindowId = portletWindow.getPortletWindowId();
        final List<SecurityRoleRefDD> securityRoleRefs;
        try {
            final IPortletEntity portletEntity = this.portletWindowRegistry.getParentPortletEntity(httpServletRequest, portletWindowId);
            final IPortletDefinition portletDefinition = this.portletEntityRegistry.getParentPortletDefinition(portletEntity.getPortletEntityId());
            final PortletDD portletDescriptor = this.portletDefinitionRegistry.getParentPortletDescriptor(portletDefinition.getPortletDefinitionId());
View Full Code Here

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

            if(null != channelInformation) {
                // portletWindowId cannot contain a "."
                // if group(3) contains a ".", set subscribe Id to value after "."
                if(channelInformation.contains(".")) {
                    String [] channelElements = channelInformation.split("\\.");
                    IPortletWindowId portletWindowId = portletWindowRegistry.getPortletWindowId(channelElements[0]);
                    requestInfo.setTargetedPortletWindowId(portletWindowId);
                    requestInfo.setTargetedChannelSubscribeId(channelElements[1]);
                } else {
                    // no "." in group(3), just set as portletWindowId and leave targetedChannelSubscribeId null
                    IPortletWindowId portletWindowId = portletWindowRegistry.getPortletWindowId(channelInformation);
                    requestInfo.setTargetedPortletWindowId(portletWindowId);
                }
            }
           
            // group(1) may contain slashes to separate sub folders
View Full Code Here

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

       
        //Determine the appropriate portlet window ID
        final IPerson person = userInstance.getPerson();
        final IPortletEntity portletEntity = this.portletEntityRegistry.getOrCreatePortletEntity(portletDefinition.getPortletDefinitionId(), portletNodeId, person.getID());
        final IPortletWindow defaultPortletWindow = this.portletWindowRegistry.createDefaultPortletWindow(request, portletEntity.getPortletEntityId());
        final IPortletWindowId portletWindowId = this.portletWindowRegistry.createTransientPortletWindowId(request, defaultPortletWindow.getPortletWindowId());
       
        return this.getPortletUrl(request, portletWindowId);
    }
View Full Code Here

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

    public void testGetPortalRequestInfoAlreadyAnAttribute() throws Exception {
        PortalRequestInfoImpl requestInfo = new PortalRequestInfoImpl();
        requestInfo.setAction(false);
        requestInfo.setTargetedChannelSubscribeId("1");
        requestInfo.setTargetedLayoutNodeId("home");
        IPortletWindowId mockPortletWindowId = createMock(IPortletWindowId.class);
        replay(mockPortletWindowId);
        requestInfo.setTargetedPortletWindowId(mockPortletWindowId);
        requestInfo.setUrlState(UrlState.NORMAL);
       
        MockHttpServletRequest mockRequest = new MockHttpServletRequest();
View Full Code Here

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

    public void testGetPortalRequestInfoControl() throws Exception {
        MockHttpServletRequest mockRequest = new MockHttpServletRequest();
        mockRequest.setContextPath("/uPortal/");
        mockRequest.setRequestURI("/uPortal/home/normal/weather.31/render.uP");
       
        IPortletWindowId mockPortletWindowId = createMock(IPortletWindowId.class);
        expect(mockPortletWindowId.getStringId()).andReturn("weather");
        replay(mockPortletWindowId);
        ITransientPortletWindowRegistry mockPortletWindowRegistry = createMock(ITransientPortletWindowRegistry.class);
        expect(mockPortletWindowRegistry.getPortletWindowId("weather")).andReturn(mockPortletWindowId);
        replay(mockPortletWindowRegistry);
       
View Full Code Here

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

    public void testGetPortalRequestInfoDefaultIsRender() throws Exception {
         MockHttpServletRequest mockRequest = new MockHttpServletRequest();
         mockRequest.setContextPath("/uPortal/");
         mockRequest.setRequestURI("/uPortal/home/normal/weather.31/");
        
         IPortletWindowId mockPortletWindowId = createMock(IPortletWindowId.class);
         expect(mockPortletWindowId.getStringId()).andReturn("weather");
         replay(mockPortletWindowId);
         ITransientPortletWindowRegistry mockPortletWindowRegistry = createMock(ITransientPortletWindowRegistry.class);
         expect(mockPortletWindowRegistry.getPortletWindowId("weather")).andReturn(mockPortletWindowId);
         replay(mockPortletWindowRegistry);
        
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.