Examples of DriverConfiguration


Examples of ch.csnc.extension.util.DriverConfiguration

    this.setName("Certificate");

    JPanel certificatePanel = getPanelCertificate();
    this.add(certificatePanel, certificatePanel.getName());

    driverConfig = new DriverConfiguration();
    updateDriverComboBox();
    driverConfig.addObserver(this);

    Certificate cert =contextManager.getDefaultCertificate();
    if(cert!=null) {
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

     * Returns the requested portal URL.
     * @return the requested portal URL.
     */
    public PortalURL getRequestedPortalURL() {
        if(requestedPortalURL == null) {
            DriverConfiguration config = (DriverConfiguration)
                servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);
            PortalURLParser parser = config.getPortalUrlParser();
            requestedPortalURL = parser.parse(request);
        }
        return requestedPortalURL;
    }
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

        WebApplicationContext springContext = (WebApplicationContext)
                servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);

        LOG.debug(" [1a] Loading DriverConfiguration. . . ");
        DriverConfiguration driverConfiguration = (DriverConfiguration)
                springContext.getBean("DriverConfiguration");

        driverConfiguration.init(servletContext);

        LOG.debug(" [1b] Registering DriverConfiguration. . .");
        servletContext.setAttribute(DRIVER_CONFIG_KEY, driverConfiguration);

View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

        WebApplicationContext springContext = (WebApplicationContext)
                servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);

        // Retrieve the driver configuration from servlet context.
        DriverConfiguration driverConfig = (DriverConfiguration)
                servletContext.getAttribute(DRIVER_CONFIG_KEY);

        try {
            LOG.info("Initializing Portlet Container. . .");

            LOG.debug(" [1] Loading RequiredContainerServices. . .");
            RequiredContainerServices required =
                    (RequiredContainerServices) springContext.getBean("RequiredContainerServices");

            LOG.debug(" [2] Loading OptionalContainerServices. . .");
            OptionalContainerServices optional =
                    (OptionalContainerServices) springContext.getBean("OptionalContainerServices");


            // Create portlet container.
            LOG.debug(" [3] Creating portlet container...");
            PortletContainerFactory factory =
                    PortletContainerFactory.getInstance();
            PortletContainer container = factory.createContainer(
                driverConfig.getContainerName(), required, optional
            );

            // Initialize portlet container.
            LOG.debug(" [4] Initializing portlet container...");
            container.init(servletContext);
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

     * Destroyes the portal driver config and removes it from servlet context.
     *
     * @param servletContext the servlet context.
     */
    private void destroyDriverConfiguration(ServletContext servletContext) {
        DriverConfiguration driverConfig = (DriverConfiguration)
                servletContext.getAttribute(DRIVER_CONFIG_KEY);
        if (driverConfig != null) {
            try {
                driverConfig.destroy();
                if (LOG.isInfoEnabled()) {
                    LOG.info("Pluto Portal Driver Config destroyed.");
                }
            } catch (DriverConfigurationException ex) {
                LOG.error("Unable to destroy portal driver config: "
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

      // Evaluate portlet ID attribute.
      evaluatePortletId();
       
      // Retrieve the portlet window config for the evaluated portlet ID.
        ServletContext servletContext = pageContext.getServletContext();
        DriverConfiguration driverConfig = (DriverConfiguration)
              servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);
        PortletWindowConfig windowConfig = driverConfig
            .getPortletWindowConfig(evaluatedPortletId);
        if (LOG.isDebugEnabled()) {
            LOG.debug("Rendering Portlet Window: " + windowConfig);
        }
       
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

        // Evaluate portlet ID attribute.
        evaluatePortletId();
       
        // Retrieve the portlet window config for the evaluated portlet ID.
        ServletContext servletContext = pageContext.getServletContext();
        DriverConfiguration driverConfig = (DriverConfiguration)
                servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);
        PortletWindowConfig windowConfig = driverConfig
                .getPortletWindowConfig(evaluatedPortletId);
      
        if (isPortletModeAllowed(driverConfig, windowConfig, portletMode)) {
            // Retrieve the portal environment.
            PortalRequestContext portalEnv = PortalRequestContext.getContext(
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

     */
    private void initDriverConfiguration(ServletContext servletContext) {
      if (LOG.isDebugEnabled()) {
            LOG.debug("Initializing Portal Driver Configuration...");
        }
        DriverConfiguration driverConfig = DriverConfigurationFactory
            .getFactory().getConfig(servletContext);
        if (driverConfig == null) {
             LOG.error("Unable to locate Portal Driver Configuration.");
        } else {
            servletContext.setAttribute(DRIVER_CONFIG_KEY, driverConfig);
            if (LOG.isInfoEnabled()) {
                LOG.info("Driver Configuration initialized to: "
                    + driverConfig.getClass().getName());
            }
        }
    }
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

     * @param servletContext  the servlet context.
     */
    private void initContainer(ServletContext servletContext) {
       
      // Retrieve the driver configuration from servlet context.
      DriverConfiguration driverConfig = (DriverConfiguration)
            servletContext.getAttribute(DRIVER_CONFIG_KEY);
       
        try {
         
          // Create portal context.
            if (LOG.isDebugEnabled()) {
                LOG.debug("Creating portal context ["
                    + driverConfig.getPortalName() + "/"
                        + driverConfig.getPortalVersion() + "]...");
            }
            PortalContextImpl portalContext =
                new PortalContextImpl(driverConfig);
           
            // Create container services.
            if (LOG.isDebugEnabled()) {
                LOG.debug("Creating container services...");
            }
            ContainerServicesImpl containerServices =
                new ContainerServicesImpl(portalContext, driverConfig);
           
            // Create portlet container.
            if (LOG.isDebugEnabled()) {
                LOG.debug("Creating portlet container...");
            }
            PortletContainerFactory factory =
                PortletContainerFactory.getInstance();
            PortletContainer container = factory.createContainer(
                driverConfig.getContainerName(),
                    containerServices,
                    containerServices);
           
            // Initialize portlet container.
            if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.pluto.driver.config.DriverConfiguration

    /**
     * Destroyes the portal driver config and removes it from servlet context.
     * @param servletContext  the servlet context.
     */
    private void destroyDriverConfiguration(ServletContext servletContext) {
        DriverConfiguration driverConfig = (DriverConfiguration)
                servletContext.getAttribute(DRIVER_CONFIG_KEY);
        if (driverConfig != null) {
            try {
              driverConfig.destroy();
                if (LOG.isInfoEnabled()) {
                    LOG.info("Pluto Portal Driver Config destroyed.");
                }
            } catch (DriverConfigurationException ex) {
              LOG.error("Unable to destroy portal driver config: "
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.