Package org.apache.jetspeed.tools.pamanager

Examples of org.apache.jetspeed.tools.pamanager.PortletApplicationManagement


        {
            context.log(TRY_START_MSG + contextPath);
            PortletServices services = JetspeedPortletServices.getSingleton();
            if (services != null)
            {
                PortletApplicationManagement pam =
                    (PortletApplicationManagement)services.getService("PAM");

                if (pam != null)
                {
                    DirectoryHelper paDirHelper = new DirectoryHelper(new File(paDir));
                    pam.startPortletApplication(contextPath, paDirHelper, paClassLoader);
                    started = true;
                    context.log(STARTED_MSG + contextPath);
                    return true;
                }
            }
View Full Code Here


          {
            started = false;
            PortletServices services = JetspeedPortletServices.getSingleton();
            if (services != null)
            {
                PortletApplicationManagement pam =
                    (PortletApplicationManagement)services.getService("PAM");

                if (pam != null)
    {
                    getServletContext().log(STOP_MSG + contextName);
        try
        {
                      pam.stopPortletApplication(contextName);
                    }
                    catch (Exception e)
            {
                      getServletContext().log(STOP_FAILED_MSG + contextName, e);
                    }
View Full Code Here

        {
            context.log(TRY_START_MSG + contextPath);
            PortletServices services = JetspeedPortletServices.getSingleton();
            if (services != null)
            {
                PortletApplicationManagement pam =
                    (PortletApplicationManagement)services.getService("PAM");

                if (pam != null && pam.isStarted())
                {
                    DirectoryHelper paDirHelper = new DirectoryHelper(new File(paDir));
                    pam.startPortletApplication(contextName, contextPath, paDirHelper, paClassLoader);
                    started = true;
                    psm = (PortalSessionsManager)services.getService(PortalSessionsManager.SERVICE_NAME);

                    context.log(STARTED_MSG + contextPath);
                    return true;
View Full Code Here

                {
                    started = false;
                    PortletServices services = JetspeedPortletServices.getSingleton();
                    if (services != null)
                    {
                        PortletApplicationManagement pam = (PortletApplicationManagement) services.getService("PAM");
                        if ((pam != null) && pam.isStarted())
                        {
                            getServletContext().log(STOP_MSG + contextName);
                            try
                            {
                                pam.stopPortletApplication(contextName);
                            }
                            catch (Exception e)
                            {
                                getServletContext().log(STOP_FAILED_MSG + contextName, e);
                            }
View Full Code Here

            jsLogger.info(TRY_START_MSG + contextPath);
            context.log(TRY_START_MSG + contextPath);
            PortletServices services = JetspeedPortletServices.getSingleton();
            if (services != null)
            {
                PortletApplicationManagement pam =
                    (PortletApplicationManagement)services.getService("PAM");

                if (pam != null && pam.isStarted())
                {
                    DirectoryHelper paDirHelper = new DirectoryHelper(new File(paDir));
                    pam.startPortletApplication(contextName, contextPath, paDirHelper, paClassLoader);
                    started = true;
                    psm = (PortalSessionsManager)services.getService(PortalSessionsManager.SERVICE_NAME);

                    jsLogger.info(STARTED_MSG + contextPath);
                    context.log(STARTED_MSG + contextPath);
View Full Code Here

                {
                    started = false;
                    PortletServices services = JetspeedPortletServices.getSingleton();
                    if (services != null)
                    {
                        PortletApplicationManagement pam = (PortletApplicationManagement) services.getService("PAM");
                        if ((pam != null) && pam.isStarted())
                        {
                            JetspeedLogger jsLogger = JetspeedLoggerUtil.getSharedLogger(getClass());
                            jsLogger.info(STOP_MSG + contextName);
                            getServletContext().log(STOP_MSG + contextName);
                            try
                            {
                                pam.stopPortletApplication(contextName);
                            }
                            catch (Exception e)
                            {
                                jsLogger.error(STOP_FAILED_MSG + contextName, e);
                                getServletContext().log(STOP_FAILED_MSG + contextName, e);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.tools.pamanager.PortletApplicationManagement

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.