Package org.apache.jetspeed.engine

Examples of org.apache.jetspeed.engine.Engine


        }

        if (Jetspeed.getEngine() != null)
        {
            request.setAttribute(PortalReservedParameters.PIPELINE, PortalReservedParameters.LOGIN_PIPELINE);
            Engine engine = Jetspeed.getEngine();
            RequestContextComponent contextComponent = null;
            RequestContext context = null;
            try
            {
                contextComponent = (RequestContextComponent) Jetspeed.getComponentManager().getComponent(RequestContextComponent.class);
                context = contextComponent.create(request, response, getServletConfig());
                engine.service(context);
            }           
            catch (JetspeedException e)
            {
                log.warn("Jetspeed engine does not work properly.", e);
                // forward to JetspeedServlet
View Full Code Here


        }

        if (Jetspeed.getEngine() != null)
        {
            request.setAttribute(PortalReservedParameters.PIPELINE, PortalReservedParameters.LOGIN_PIPELINE);
            Engine engine = Jetspeed.getEngine();
            RequestContextComponent contextComponent = null;
            RequestContext context = null;
            try
            {
                String jetuiMode = Jetspeed.getConfiguration().getString(PortalConfigurationConstants.JETUI_CUSTOMIZATION_METHOD, PortalConfigurationConstants.JETUI_CUSTOMIZATION_SERVER);
                boolean redirectHomeSpace = Jetspeed.getConfiguration().getBoolean(PortalConfigurationConstants.JETUI_REDIRECT_HOME_SPACE, true);
                if (redirectHomeSpace && jetuiMode.equals(PortalConfigurationConstants.JETUI_CUSTOMIZATION_AJAX)) {
                    String destination = (String)session.getAttribute(LoginConstants.DESTINATION);
                    if (destination == null) destination = "/";
                    String username = (String)session.getAttribute(LoginConstants.USERNAME);
                    if (username != null) {

                        if (!destination.endsWith("/"))
                            destination += "/";
                        destination += (Folder.RESERVED_USER_FOLDER_NAME + "/" + username);
                        session.setAttribute(LoginConstants.DESTINATION, destination);
                    }
                }
                contextComponent = (RequestContextComponent) Jetspeed.getComponentManager().getComponent(RequestContextComponent.class);
                context = contextComponent.create(request, response, getServletConfig());
                engine.service(context);
            }           
            catch (JetspeedException e)
            {
                log.warn("Jetspeed engine does not work properly.", e);
                // forward to JetspeedServlet
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.engine.Engine

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.