Package org.exoplatform.container

Examples of org.exoplatform.container.PortalContainer


   public void setUp() throws Exception
   {
      super.setUp();
      begin();
      PortalContainer container = PortalContainer.getInstance();
      org = (OrganizationService)container.getComponentInstanceOfType(OrganizationService.class);
      storage = (DataStorage)container.getComponentInstanceOfType(DataStorage.class);
      mgr = (POMSessionManager)container.getComponentInstanceOfType(POMSessionManager.class);
      session = mgr.openSession();
   }
View Full Code Here


   private GadgetRegistryService service_;

   public void setUp() throws Exception
   {
      PortalContainer container = PortalContainer.getInstance();
      service_ = (GadgetRegistryService)container.getComponentInstanceOfType(GadgetRegistryService.class);
   }
View Full Code Here

   protected ChromatticManager chromatticManager;

   @Override
   protected void setUp() throws Exception
   {
      PortalContainer portalContainer = PortalContainer.getInstance();
      chromatticManager = (ChromatticManager)portalContainer.getComponentInstanceOfType(ChromatticManager.class);
      service_ = (ApplicationRegistryService)portalContainer.getComponentInstanceOfType(ApplicationRegistryService.class);
      orgService = (OrganizationService)portalContainer.getComponentInstanceOfType(OrganizationService.class);
      begin();
   }
View Full Code Here

      super(name);
   }

   public void setUp() throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      parser_ = (RSSParser)manager.getComponentInstanceOfType(RSSParser.class);
   }
View Full Code Here

   {
      boolean hasBeenSet = false;
      final ExoContainer oldContainer = ExoContainerContext.getCurrentContainer();
      try
      {
         PortalContainer portalContainer = PortalContainer.getInstanceIfPresent();
         if (portalContainer == null)
         {
            portalContainer = PortalContainer.getCurrentInstance(event.getServletContext());
            PortalContainer.setInstance(portalContainer);
            hasBeenSet = true;
View Full Code Here

   }

   @Override
   protected void setUp() throws Exception
   {
      PortalContainer container = PortalContainer.getInstance();
      chromatticManager = (ChromatticManager)container.getComponent(ChromatticManager.class);
      test1LF = chromatticManager.getLifeCycle("test1");
      test2LF = chromatticManager.getLifeCycle("test2");
   }
View Full Code Here

      super(name);
   }

   public void setUp() throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      service_ = (ResourceBundleService)manager.getComponentInstanceOfType(ResourceBundleService.class);
      lservice_ = (LocaleConfigService)manager.getComponentInstanceOfType(LocaleConfigService.class);
   }
View Full Code Here

public class BootstrapTestCase extends AbstractKernelTest
{

   public void testWorkspace() throws Exception
   {
      PortalContainer container = PortalContainer.getInstance();
      RepositoryService repos = (RepositoryService)container.getComponentInstanceOfType(RepositoryService.class);
      assertNotNull(repos);
      ManageableRepository repo = repos.getDefaultRepository();
      assertNotNull(repo);
      Session session = repo.getSystemSession("portal-test");
      assertNotNull(session);
View Full Code Here

            chain.doFilter(req, resp);
        }
    }

    private ApplicationStatistic get(PortletRequest req) {
        PortalContainer container = PortalContainer.getInstance();
        ApplicationStatisticService service = (ApplicationStatisticService) container
                .getComponentInstance(ApplicationStatisticService.class);
        if (service != null) {
            PortletConfig portletConfig = (PortletConfig) req.getAttribute("javax.portlet.config");
            String portletName = portletConfig.getPortletName();
            String phase = (String) req.getAttribute(PortletRequest.LIFECYCLE_PHASE);
View Full Code Here

    }

    @Override
    public boolean execute(ControllerContext context) throws Exception {
        context.getResponse().setHeader("Cache-Control", "max-age=2592000,s-maxage=2592000");
        PortalContainer portalContainer = PortalContainer.getInstance();
        ServletContext mergedContext = portalContainer.getPortalContext();

        HttpServletRequest req = context.getRequest();
        HttpServletResponse res = context.getResponse();
        mergedContext.getNamedDispatcher("default").forward(req, res);
        return true;
View Full Code Here

TOP

Related Classes of org.exoplatform.container.PortalContainer

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.