@Override public String getPortletName() { return wrapped.getPortletName(); }
/** * Returns the name of this portlet. * * @return the portlet name * * @see PortletConfig#getPortletName() */ public String getPortletName() { if (config == null) throw new java.lang.IllegalStateException( "Config is null, please ensure that your init(config) method calls super.init(config)"); return config.getPortletName(); }
/** * Returns the name of this portlet. * * @return the portlet name * * @see PortletConfig#getPortletName() */ public String getPortletName () { return config.getPortletName(); }
protected String getPortletName(HttpServletRequest request) { PortletConfig portletConfig = (PortletConfig)request.getAttribute( JavaConstants.JAVAX_PORTLET_CONFIG); if (portletConfig == null) { return StringPool.BLANK; } return portletConfig.getPortletName(); }
public String getPortletName() { PortletConfig portletConfig = (PortletConfig)_request.getAttribute( JavaConstants.JAVAX_PORTLET_CONFIG); if (portletConfig == null) { return StringPool.BLANK; } return portletConfig.getPortletName(); }
public String getPortletName() { String portletName = wrappedPortletConfig.getPortletName(); // Example: Transform "chapter5_2TestsisPostbackTestportlet" to "chapter5_2Tests-isPostbackTest-portlet" portletName = portletName.replaceFirst("Tests", "Tests-"); portletName = portletName.replaceAll("portlet$", "-portlet"); return portletName; }
@Override public String getDefaultRenderKitId() { if (defaultRenderKitId == null) { String attributeName = Bridge.BRIDGE_PACKAGE_PREFIX + portletConfig.getPortletName() + "." + Bridge.DEFAULT_RENDERKIT_ID; defaultRenderKitId = (String) portletContext.getAttribute(attributeName); } return defaultRenderKitId; }
/** * Producer method for the portlet name. */ @Produces @PortletName @Named("portletName") public static String producePortletName() { PortletArtifactProducer pap = producers.get(); assert pap != null; return pap.config.getPortletName(); }
@Override public String getDefaultRenderKitId() { if (defaultRenderKitId == null) { String attributeName = Bridge.BRIDGE_PACKAGE_PREFIX + portletConfig.getPortletName() + "." + Bridge.DEFAULT_RENDERKIT_ID; defaultRenderKitId = (String) portletContext.getAttribute(attributeName); } return defaultRenderKitId; }
private static String getLoaderTagId(String portletId, PortletConfig config) { return ("vaadinLoader_" + config.getPortletName() + "_" + config.getPortletContext().getPortletContextName() + "_" + portletId.replace("-","")) .replaceAll("[^\\w-]","_"); } }
/** * Overridden method that simply returns {@code null} when no * PortletConfig set yet. * @see #getPortletConfig() */ @Override public final String getPortletName() { return (getPortletConfig() != null ? getPortletConfig().getPortletName() : null); }
@Override @SuppressWarnings("unchecked") public Map<String, String> getDefaultViewIdMap() { if (defaultViewIdMap == null) { String portletName = portletConfig.getPortletName(); String attrNameDefaultViewIdMap = Bridge.BRIDGE_PACKAGE_PREFIX + portletName + "." + Bridge.DEFAULT_VIEWID_MAP; defaultViewIdMap = (Map<String, String>) portletConfig.getPortletContext().getAttribute( attrNameDefaultViewIdMap); } return defaultViewIdMap; }
/** * Overridden method that simply returns <code>null</code> when no * PortletConfig set yet. * @see #getPortletConfig() */ @Override public final String getPortletName() { return (getPortletConfig() != null ? getPortletConfig().getPortletName() : null); }
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; } }
public String getPortletName() { try { return getGenericPortlet().getPortletName(); } catch (PortletException e) { logger.warn(e); return config.getPortletName(); } }
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; } }
private String createBridgeRequestScope(PortletRequest request) { // Generate an RMI UID, which is a unique identifier WITHIN the local // host. This will be used as the new lifecyleID UID uid = new UID(); return qualifyScopeId(mPortletConfig.getPortletName(), request.getPortletSession(true).getId(), request.getPortletMode().toString(), uid.toString()); }