[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/portlet/container ...
Julien Viet
julien at jboss.com
Tue Aug 22 08:52:59 EDT 2006
User: julien
Date: 06/08/22 08:52:59
Modified: portlet/src/main/org/jboss/portal/portlet/container
PortletContainerInvoker.java
Log:
make the stateful portlet container retrieve properties value in the wrapped invoker via metadata rather than the getProperties() operation
Revision Changes Path
1.25 +3 -25 jboss-portal/portlet/src/main/org/jboss/portal/portlet/container/PortletContainerInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PortletContainerInvoker.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/portlet/container/PortletContainerInvoker.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- PortletContainerInvoker.java 31 Jul 2006 19:29:52 -0000 1.24
+++ PortletContainerInvoker.java 22 Aug 2006 12:52:59 -0000 1.25
@@ -45,7 +45,7 @@
* An implementation of portlet invoker that makes a call to a portlet container.
*
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.24 $
+ * @version $Revision: 1.25 $
*/
public class PortletContainerInvoker extends AbstractJBossService implements PortletInvoker
{
@@ -154,31 +154,9 @@
throw new UnsupportedOperationException();
}
- public ValueMap getProperties(String portletId) throws NoSuchPortletException
+ public ValueMap getProperties(String portletId) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
{
- // Get the container
- PortletContainer container = registry.getPortletContainer(portletId);
-
- //
- if (container == null)
- {
- throw new NoSuchPortletException(portletId);
- }
-
- // The prefs info
- ContainerPreferencesInfo prefs = (ContainerPreferencesInfo)container.getInfo().getPreferences();
-
- // Get the state
- ValueMap value = new SimpleValueMap();
- for (Iterator i = prefs.getKeys().iterator(); i.hasNext();)
- {
- String key = (String)i.next();
- ContainerPreferenceInfo pref = prefs.getContainerPreference(key);
- value.setValue(key, (Value)pref.getDefaultValue().clone());
- }
-
- //
- return value;
+ throw new UnsupportedOperationException();
}
public void setProperties(String portletId, ValueMap properties)
More information about the jboss-cvs-commits
mailing list