@Override public String getPortletContextName() { return wrapped.getPortletContextName(); }
protected void initValidPaths(String rootPath, String extension) { if (rootPath.equals(StringPool.SLASH)) { PortletContext portletContext = getPortletContext(); PortletApp portletApp = PortletLocalServiceUtil.getPortletApp( portletContext.getPortletContextName()); if (!portletApp.isWARFile()) { _log.error( StringBundler.concat( "Disabling paths for portlet ", getPortletName(), " because root path is configured to have access to ", "all portal paths")); validPaths = new HashSet<>(); return; } } validPaths = getPaths(rootPath, extension); if (!rootPath.equals(StringPool.SLASH) && !rootPath.equals("/META-INF/") && !rootPath.equals("/META-INF/resources/")) { validPaths.addAll( getPaths(_PATH_META_INF_RESOURCES.concat(rootPath), extension)); } Collections.addAll( validPaths, StringUtil.split(getInitParameter("valid-paths"))); }
@Override public String getApplicationName() { if (this.portletContext == null) { return ""; } String name = this.portletContext.getPortletContextName(); return (name != null ? name : ""); }
/** * @see {@link ExternalContext#getContextName()} * @since JSF 2.0 */ @Override public String getContextName() { if (portletContextName == null) { portletContextName = portletContext.getPortletContextName(); } return portletContextName; }
/** * @see {@link ExternalContext#getContextName()} * @since JSF 2.0 */ @Override public String getContextName() { if (portletContextName == null) { portletContextName = portletContext.getPortletContextName(); } return portletContextName; }
/** * @see javax.servlet.ServletContext#getContextPath() */ public String getContextPath() { return portletContext.getPortletContextName(); } }
/** * @see javax.servlet.ServletContext#getServletContextName() */ public String getServletContextName() { return portletContext.getPortletContextName(); }
public String getServletContextName() { return _ctx.getPortletContextName(); }
public String getServletContextName() { return portletContext.getPortletContextName(); }
public String getPortletContextName() { return getWrapped().getPortletContextName(); }
public static void dumpContextProperties(final StringBuffer sb, final PortletContext context, final String lf, final String indent) { sb.append(indent); sb.append("ContextRealPath=").append(context.getRealPath("/")); sb.append(lf).append(indent); sb.append("SERVER_SOFTWARE=").append(context.getServerInfo()); sb.append(", PortletContextName=").append( context.getPortletContextName()); sb.append(", MajorVersion=").append(context.getMajorVersion()); sb.append(", MinorVersion=").append(context.getMinorVersion()); }
private static String getLoaderTagId(String portletId, PortletConfig config) { return ("vaadinLoader_" + config.getPortletName() + "_" + config.getPortletContext().getPortletContextName() + "_" + portletId.replace("-","")) .replaceAll("[^\\w-]","_"); } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }
protected String getNamespaceWSRP(BridgeContext bridgeContext) { if (namespaceWSRP == null) { PortletConfig portletConfig = bridgeContext.getPortletConfig(); String portletName = portletConfig.getPortletName(); PortletContext portletContext = bridgeContext.getPortletContext(); String portletContextName = portletContext.getPortletContextName(); namespaceWSRP = portletName + portletContextName; } return namespaceWSRP; } }