protected IPortletEntity wrapPortletEntityData(final PortletEntityData portletEntityData) { final IPortletDefinitionId portletDefinitionId = portletEntityData.getPortletDefinitionId(); final IPortletDefinition portletDefinition = this.portletDefinitionRegistry.getPortletDefinition(portletDefinitionId); return new SessionPortletEntityImpl(portletDefinition, portletEntityData); }
protected IPortletDefinition getPortletDefinition( IUserInstance userInstance, IPortletDefinitionId portletDefinitionId) { final IPortletDefinition portletDefinition = this.portletDefinitionRegistry.getPortletDefinition(portletDefinitionId); return checkPortletDefinitionRenderPermissions(userInstance, portletDefinition); }
public static String convertToDelegateLayoutNodeId(final String portletWindowIdString) { final String portletEntityIdString = parsePortletEntityId(portletWindowIdString); final String portletWindowInstanceIdString = parsePortletWindowInstanceId(portletWindowIdString); final String converted = PortletEntityIdStringUtils.convertToDelegateLayoutNodeId(portletEntityIdString); return (portletWindowInstanceIdString == null) ? converted : converted + ID_PART_SEPARATOR + portletWindowInstanceIdString; }
@Override public IPortletEntity apply(IPortletEntityId input) { // Found a session stored entity, wrap it to make it a real // IPortletEntity logger.trace( "Found PortletEntityData {} in session cache, caching wrapper in the request", portletEntityData.getPortletEntityId()); return wrapPortletEntityData(portletEntityData); } });
@Override public IPortletEntityId getPortletEntityId() { return this.portletEntityData.getPortletEntityId(); }
@Override public Map<String, String[]> getRenderParameters() { if (this.renderParameters != null) { return this.renderParameters; } return this.portletWindowData.getRenderParameters(); }
@Override public Map<String, String[]> getPublicRenderParameters() { if (this.publicRenderParameters != null) { return this.publicRenderParameters; } return this.portletWindowData.getPublicRenderParameters(); }
/** * Generates a new, unique, portlet window ID for the window instance ID & entity id. * * @param windowInstanceId The window instance id. * @param portletEntityId The parent entity id. * @return A portlet window id for the parameters. */ protected PortletWindowIdImpl createPortletWindowId( String windowInstanceId, IPortletEntityId portletEntityId) { return new PortletWindowIdImpl(portletEntityId, windowInstanceId); } }
@Override public PortletMode getPortletMode() { if (this.portletMode != null) { return this.portletMode; } return this.portletWindowData.getPortletMode(); }
@Override public Integer getExpirationCache() { if (this.expirationCache != null) { return this.expirationCache; } return this.portletWindowData.getExpirationCache(); }
@Override public WindowState getWindowState() { if (this.windowState != null) { return this.windowState; } return this.portletWindowData.getWindowState(); }
@Override public void setExpirationCache(Integer expirationCache) { this.expirationCache = expirationCache; this.portletWindowData.setExpirationCache(expirationCache); }
@Override public IPortletWindowId getDelegationParentId() { return this.portletWindowData.getDelegationParentId(); }
@Override public String toString() { return this.getStringId(); } }
protected IPortletEntity wrapPortletEntityData(final PortletEntityData portletEntityData) { final IPortletDefinitionId portletDefinitionId = portletEntityData.getPortletDefinitionId(); final IPortletDefinition portletDefinition = this.portletDefinitionRegistry.getPortletDefinition(portletDefinitionId); return new SessionPortletEntityImpl(portletDefinition, portletEntityData); }
protected IPortletDefinition getPortletDefinition( IUserInstance userInstance, IPortletDefinitionId portletDefinitionId) { final IPortletDefinition portletDefinition = this.portletDefinitionRegistry.getPortletDefinition(portletDefinitionId); return checkPortletDefinitionRenderPermissions(userInstance, portletDefinition); }
@Override public Map<String, String[]> getRenderParameters() { if (this.renderParameters != null) { return this.renderParameters; } return this.portletWindowData.getRenderParameters(); }
@Override public Map<String, String[]> getPublicRenderParameters() { if (this.publicRenderParameters != null) { return this.publicRenderParameters; } return this.portletWindowData.getPublicRenderParameters(); }
/** * Generates a new, unique, portlet window ID for the window instance ID & entity id. * * @param windowInstanceId The window instance id. * @param portletEntityId The parent entity id. * @return A portlet window id for the parameters. */ protected PortletWindowIdImpl createPortletWindowId( String windowInstanceId, IPortletEntityId portletEntityId) { return new PortletWindowIdImpl(portletEntityId, windowInstanceId); } }
@Override public PortletMode getPortletMode() { if (this.portletMode != null) { return this.portletMode; } return this.portletWindowData.getPortletMode(); }