protected PortletContent createPortletContent(RequestContext request, PortletWindow portletWindow, int expirationCache) { ContentCacheKey cacheKey = portletContentCache.createCacheKey(request, portletWindow.getFragment().getId()); String title = portletWindow.getFragment().getTitle(); if (title == null) { title = request.getPreferedLanguage(portletWindow.getPortletDefinition()).getTitle(); } if (title == null) { title = portletWindow.getPortletDefinition().getPortletName(); } return new PortletContentImpl(cacheKey, expirationCache, title, portletWindow.getPortletMode(), portletWindow.getWindowState()); }
ContentCacheKey cacheKey = portletContentCache.createCacheKey(requestContext, fragment.getId()); CacheElement cachedElement = portletContentCache.get(cacheKey);