Package org.apache.pluto.internal

Examples of org.apache.pluto.internal.InternalPortletWindow


    public Map<String, String> getUserInfo(final PortletRequest request) throws PortletContainerException {
        if (!(request instanceof InternalPortletRequest)) {
            throw new IllegalArgumentException("The PersonDirectoryUserInfoServices requires the PortletRequest parameter to implement the '" + InternalPortletRequest.class.getName() + "' interface.");
        }
        final InternalPortletRequest internalRequest = (InternalPortletRequest)request;
        final InternalPortletWindow internalPortletWindow = internalRequest.getInternalPortletWindow();

        return this.getUserInfo(request, internalPortletWindow);
    }
View Full Code Here


      throws PortletContainerException {
        if (!(request instanceof InternalPortletRequest)) {
            throw new IllegalArgumentException("The CasTicketUserInfoServices requires the PortletRequest parameter to implement the '" + InternalPortletRequest.class.getName() + "' interface.");
        }
        final InternalPortletRequest internalRequest = (InternalPortletRequest)request;
        final InternalPortletWindow internalPortletWindow = internalRequest.getInternalPortletWindow();

        return this.getUserInfo(request, internalPortletWindow);
  }
View Full Code Here

      throws PortletContainerException {
        if (!(request instanceof InternalPortletRequest)) {
            throw new IllegalArgumentException("The CasTicketUserInfoServices requires the PortletRequest parameter to implement the '" + InternalPortletRequest.class.getName() + "' interface.");
        }
        final InternalPortletRequest internalRequest = (InternalPortletRequest)request;
        final InternalPortletWindow internalPortletWindow = internalRequest.getInternalPortletWindow();

        return this.getUserInfo(request, internalPortletWindow);
  }
View Full Code Here

        final String transientChannelSubscribeId = "CONFIG_" + portletDefinitionId;
        final IPortletEntity portletEntity = this.portletEntityRegistry.getOrCreatePortletEntity(portletDefinitionId, transientChannelSubscribeId, person.getID());
       
        final IPortletEntityId portletEntityId = portletEntity.getPortletEntityId();

        final InternalPortletWindow internalPortletWindow = ((InternalPortletRequest)portletRequest).getInternalPortletWindow();
        final IPortletWindow parentPortletWindow = this.portletWindowRegistry.convertPortletWindow(request, internalPortletWindow);
        final IPortletWindowId parentPortletWindowId = parentPortletWindow.getPortletWindowId();
        final IPortletWindow portletWindow = this.portletWindowRegistry.createDelegatePortletWindow(request, portletEntityId, parentPortletWindowId);

        //Initialize the window since we just created it
View Full Code Here

        mockPortalCallback = mock( PortalCallbackService.class );
        mockServices = mock( RequiredContainerServices.class );       
        mockContainer = mock( PortletContainerImpl.class,
                new Class[] { String.class, RequiredContainerServices.class, OptionalContainerServices.class },
                new Object[] { "Mock Pluto Container", (RequiredContainerServices) mockServices.proxy(), null } );
        InternalPortletWindow window = (InternalPortletWindow) mock( InternalPortletWindow.class ).proxy();
        HttpServletRequest req = (HttpServletRequest) mock( HttpServletRequest.class ).proxy();
       
        // Create Spring mock objects (we need functional HttpServletResponse for encodeURL)
        HttpServletResponse mockHttpServletResponse = new MockHttpServletResponse();
       
View Full Code Here

    throws PortletException, IOException, PortletContainerException {

        ensureInitialized();

        ServletContext portletAppCtx = getPortletAppContext(portletWindow.getContextPath());
        InternalPortletWindow internalPortletWindow =
          new InternalPortletWindowImpl(portletAppCtx, portletWindow);
       
        debugWithName("Render request received for portlet: "
            + portletWindow.getPortletName());
View Full Code Here

    throws PortletException, IOException, PortletContainerException {

      ensureInitialized();

        ServletContext portletAppCtx = getPortletAppContext(portletWindow.getContextPath());
        InternalPortletWindow internalPortletWindow =
          new InternalPortletWindowImpl(portletAppCtx, portletWindow);

        debugWithName("Action request received for portlet: "
          + portletWindow.getPortletName());
View Full Code Here

    throws PortletException, IOException, PortletContainerException {

      ensureInitialized();

        ServletContext portletAppCtx = getPortletAppContext(portletWindow.getContextPath());
        InternalPortletWindow internalPortletWindow =
          new InternalPortletWindowImpl(portletAppCtx, portletWindow);

        debugWithName("Load request received for portlet: "
            + portletWindow.getPortletName());
View Full Code Here

                        HttpServletResponse servletResponse)
    throws PortletException, IOException, PortletContainerException {
        ensureInitialized();

        ServletContext portletAppCtx = getPortletAppContext(portletWindow.getContextPath());
        InternalPortletWindow internalPortletWindow =
          new InternalPortletWindowImpl(portletAppCtx, portletWindow);

        debugWithName("Admin request received for portlet: "
            +portletWindow.getPortletName());
View Full Code Here

                         HttpServletResponse response)
    throws PortletException, IOException, PortletContainerException {

        ensureInitialized();

        InternalPortletWindow internalPortletWindow =
            new InternalPortletWindowImpl(
                    PortletContextManager.getPortletContext(servletContext,
                        portletWindow.getContextPath()),
                    portletWindow);
        debugWithName("Render request received for portlet: "
View Full Code Here

TOP

Related Classes of org.apache.pluto.internal.InternalPortletWindow

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.