Examples of PortalContext


Examples of org.apache.jetspeed.PortalContext

    public void setUp() throws Exception
    {
        this.portletFactory = new JetspeedPortletFactory(new RequestDispatcherServiceImpl(), true, true);
        PortalConfiguration configuration = (PortalConfiguration) DelegatingObjectProxy.createProxy(new Class [] { PortalConfiguration.class },
                                                                                                    new MockPortalConfiguration());
        PortalContext portalContext = (PortalContext) DelegatingObjectProxy.createProxy(new Class [] { PortalContext.class },
                                                                                        new MockPortalContext(configuration));
        this.portletFactory.setPortalContext(portalContext);       
    }
View Full Code Here

Examples of org.gatein.integration.jboss.as7.portal.PortalContext

public abstract class AbstractPortalResource extends AbstractRuntimeResource {
    protected final PortalContext portalContext;

    protected AbstractPortalResource(PathElement pathElement, String portalContainerName) {
        super(pathElement);
        this.portalContext = new PortalContext(portalContainerName);
    }
View Full Code Here

Examples of org.gatein.pc.api.spi.PortalContext

      // prepare information for invocation
      final org.oasis.wsrp.v2.UserContext wsrpUserContext = getUserContext();
      checkUserContext(wsrpUserContext);
      SecurityContext securityContext = createSecurityContext(params, runtimeContext, wsrpUserContext);
      final MediaType mediaType = createMediaType(markupRequest);
      PortalContext portalContext = createPortalContext(params, markupRequest);
      UserContext userContext = createUserContext(wsrpUserContext, markupRequest.getLocale(), desiredLocales);
      String portletInstanceKey = runtimeContext.getPortletInstanceKey();
      instanceContext = createInstanceContext(portletContext, getAccessMode(), portletInstanceKey);
      WindowContext windowContext = createWindowContext(portletContext.getId(), runtimeContext);
View Full Code Here

Examples of org.gatein.pc.api.spi.PortalContext

      return UserContextConverter.createPortalUserContextFrom(userContext, supportedLocales, preferredLocale);
   }

   private PortalContext createPortalContext(final MimeRequest params, final MarkupRequest markupRequest)
   {
      return new PortalContext()
      {

         public String getInfo()
         {
            return Version.VALUE;
View Full Code Here

Examples of org.gatein.pc.api.spi.PortalContext

      final org.oasis.wsrp.v2.UserContext wsrpUserContext = getUserContext();
      checkUserContext(wsrpUserContext);

      SecurityContext securityContext = createSecurityContext(params, runtimeContext, wsrpUserContext);
      final MediaType mediaType = createMediaType(markupRequest);
      PortalContext portalContext = createPortalContext(params, markupRequest);
      UserContext userContext = createUserContext(wsrpUserContext, markupRequest.getLocale(), desiredLocales);
      String portletInstanceKey = runtimeContext.getPortletInstanceKey();
      instanceContext = createInstanceContext(portletContext, getAccessMode(), portletInstanceKey);
      WindowContext windowContext = createWindowContext(portletContext.getId(), runtimeContext);
View Full Code Here

Examples of org.gatein.pc.api.spi.PortalContext

      return UserContextConverter.createPortalUserContextFrom(userContext, supportedLocales, preferredLocale);
   }

   private PortalContext createPortalContext(final MimeRequest params, final MarkupRequest markupRequest)
   {
      return new PortalContext()
      {

         public String getInfo()
         {
            return PortalContext.VERSION.toString();
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.