Author: chris.laprun(a)jboss.com
Date: 2008-06-04 09:17:50 -0400 (Wed, 04 Jun 2008)
New Revision: 10918
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java
Log:
- Minor optimization possible with PC post CR2 (todo).
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java 2008-06-04
01:24:04 UTC (rev 10917)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/generic/InternalGenericContentProvider.java 2008-06-04
13:17:50 UTC (rev 10918)
@@ -22,10 +22,11 @@
******************************************************************************/
package org.jboss.portal.core.impl.model.content.generic;
+import org.apache.log4j.Logger;
import org.jboss.portal.Mode;
-import org.jboss.portal.identity.User;
import org.jboss.portal.common.i18n.LocalizedString;
import org.jboss.portal.common.util.ParameterMap;
+import org.jboss.portal.core.CoreConstants;
import org.jboss.portal.core.impl.model.content.InternalContentProvider;
import org.jboss.portal.core.model.content.Content;
import org.jboss.portal.core.model.content.ContentType;
@@ -37,20 +38,19 @@
import org.jboss.portal.core.model.instance.InstanceContainer;
import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.model.portal.command.response.MarkupResponse;
+import org.jboss.portal.core.model.portal.content.ContentRendererContext;
import org.jboss.portal.core.model.portal.content.WindowRendition;
-import org.jboss.portal.core.model.portal.content.ContentRendererContext;
-import org.jboss.portal.core.CoreConstants;
-import org.jboss.portal.portlet.invocation.RenderInvocation;
-import org.jboss.portal.portlet.controller.state.WindowNavigationalState;
+import org.jboss.portal.identity.User;
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletInvokerException;
-import org.jboss.portal.portlet.info.PortletInfo;
+import org.jboss.portal.portlet.controller.state.WindowNavigationalState;
import org.jboss.portal.portlet.info.NavigationInfo;
import org.jboss.portal.portlet.info.ParameterInfo;
-import org.apache.log4j.Logger;
+import org.jboss.portal.portlet.info.PortletInfo;
+import org.jboss.portal.portlet.invocation.RenderInvocation;
+import java.util.Collections;
import java.util.Map;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
@@ -206,7 +206,8 @@
PortletInfo portletInfo = portlet.getInfo();
NavigationInfo navigationInfo = portletInfo.getNavigation();
- // todo : remove me when there is a getParameter(String id);
+ // todo : use instead of loop (waiting for new version of PC 2.0 that
has the method):
+ //id =
navigationInfo.getPublicParameter(CoreConstants.JBOSS_PORTAL_CONTENT_URI);
for (ParameterInfo parameterInfo :
navigationInfo.getPublicParameters())
{
if
(parameterInfo.getName().equals(CoreConstants.JBOSS_PORTAL_CONTENT_URI))
Show replies by date