use of org.apereo.portal.portlet.om.IPortletWindowId in project uPortal by Jasig.
the class PropertyToAttributePropertiesManager method getAttributeName.
protected String getAttributeName(IPortletWindow portletWindow, String property) {
final String mappedAttributeName = this.propertyToAttributeMappings.get(property);
final String attributeName;
if (mappedAttributeName == null) {
attributeName = property;
} else {
attributeName = mappedAttributeName;
}
if (this.nonNamespacedProperties.contains(property)) {
return attributeName;
}
final IPortletWindowId portletWindowId = portletWindow.getPortletWindowId();
return portletWindowId.getStringId() + attributeName;
}
use of org.apereo.portal.portlet.om.IPortletWindowId in project uPortal by Jasig.
the class PortletMimeResponseContextImpl method getPortletURLProvider.
/* (non-Javadoc)
* @see org.apache.pluto.container.PortletMimeResponseContext#getPortletURLProvider(org.apache.pluto.container.PortletURLProvider.TYPE)
*/
@Override
public PortletURLProvider getPortletURLProvider(TYPE type) {
final IPortletWindowId portletWindowId = this.portletWindow.getPortletWindowId();
final UrlType urlType = UrlType.fromPortletUrlType(type);
final IPortalUrlBuilder portalUrlBuilder = this.portalUrlProvider.getPortalUrlBuilderByPortletWindow(containerRequest, portletWindowId, urlType);
final IPortletUrlBuilder portletUrlBuilder = portalUrlBuilder.getPortletUrlBuilder(portletWindowId);
return new PortletURLProviderImpl(portletUrlBuilder);
}
use of org.apereo.portal.portlet.om.IPortletWindowId in project uPortal by Jasig.
the class PortletExecutionManager method postExecution.
@Override
public void postExecution(HttpServletRequest request, HttpServletResponse response, IPortletExecutionContext context, Exception e) {
final IPortletWindowId portletWindowId = context.getPortletWindowId();
final IPortletWindow portletWindow = this.portletWindowRegistry.getPortletWindow(request, portletWindowId);
final IPortletEntity portletEntity = portletWindow.getPortletEntity();
final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();
final IPortletDescriptorKey portletDescriptorKey = portletDefinition.getPortletDescriptorKey();
final AtomicInteger counter = this.executionCount.get(portletDescriptorKey);
counter.incrementAndGet();
}
use of org.apereo.portal.portlet.om.IPortletWindowId in project uPortal by Jasig.
the class PortletExecutionManager method getRenderedPortletBodyWorker.
protected IPortletRenderExecutionWorker getRenderedPortletBodyWorker(IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) {
final Map<IPortletWindowId, IPortletRenderExecutionWorker> portletRenderingMap = this.getPortletRenderingMap(request);
IPortletRenderExecutionWorker tracker = portletRenderingMap.get(portletWindowId);
if (tracker == null) {
tracker = this.startPortletRenderInternal(portletWindowId, request, response);
}
return tracker;
}
use of org.apereo.portal.portlet.om.IPortletWindowId in project uPortal by Jasig.
the class PortletExecutionManager method isPortletRenderHeaderRequested.
/* (non-Javadoc)
* @see org.apereo.portal.portlet.rendering.IPortletExecutionManager#isPortletHeaderRenderRequested(org.apereo.portal.portlet.om.IPortletWindowId, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
@Override
public boolean isPortletRenderHeaderRequested(IPortletWindowId portletWindowId, HttpServletRequest request, HttpServletResponse response) {
final Map<IPortletWindowId, IPortletRenderExecutionWorker> portletRenderingMap = this.getPortletHeaderRenderingMap(request);
final IPortletRenderExecutionWorker tracker = portletRenderingMap.get(portletWindowId);
return tracker != null;
}
Aggregations