Examples of JetspeedServiceLocator


Examples of org.apache.jetspeed.portlets.JetspeedServiceLocator

        @Override
        protected void onBeforeRender()
        {
            ApplicationBean pab = (ApplicationBean) getDefaultModelObject();
           
            final JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
            ApplicationServerManager asm = locator.getApplicationServerManager();
            PortletApplication pa = locator.getPortletRegistry().getPortletApplication(pab.getApplicationName());
           
            boolean isRunning = (pa != null && locator.getPortletFactory().isPortletApplicationRegistered(pa));
            boolean isLocal = (pa != null && pa.getApplicationType() == PortletApplication.LOCAL);
            boolean isAdmin = ((pa != null) && (pa.getContextPath().equals(((AbstractAdminWebApplication) getApplication()).getPortletRequest().getContextPath())));

            get("start").setVisible(
                                    (asm != null && !isRunning) && !(isLocal || isAdmin)
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.