Author: thomas.heute(a)jboss.com
Date: 2008-07-15 11:53:56 -0400 (Tue, 15 Jul 2008)
New Revision: 11454
Modified:
branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/portlet/info/WSRPPortletInfo.java
Log:
Use latest modules
Modified: branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml 2008-07-15 15:53:15 UTC
(rev 11453)
+++ branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml 2008-07-15 15:53:56 UTC
(rev 11454)
@@ -43,9 +43,9 @@
<componentref name="jboss-portal/modules/common"
version="1.2.0"/>
<componentref name="jboss-portal/modules/web"
version="1.2.0"/>
- <componentref name="jboss-portal/modules/test"
version="1.0-SNAPSHOT"/>
- <componentref name="jboss-portal/modules/portlet"
version="trunk-SNAPSHOT"/>
- <componentref name="jboss-portal/modules/identity"
version="1.0-SNAPSHOT"/>
+ <componentref name="jboss-portal/modules/test"
version="1.0.2"/>
+ <componentref name="jboss-portal/modules/portlet"
version="2.0.1"/>
+ <componentref name="jboss-portal/modules/identity"
version="1.0.4"/>
<componentref name="antlr" version="2.7.6.ga"/>
<componentref name="apache-ant" version="1.6.5"/>
<componentref name="jackrabbit" version="1.1.1"/>
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/portlet/info/WSRPPortletInfo.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/portlet/info/WSRPPortletInfo.java 2008-07-15
15:53:15 UTC (rev 11453)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/portlet/info/WSRPPortletInfo.java 2008-07-15
15:53:56 UTC (rev 11454)
@@ -495,6 +495,18 @@
return Collections.unmodifiableSet(mimeTypeInfo.modes);
}
+
+ public ModeInfo getMode(Mode mode)
+ {
+ for (ModeInfo info: modes)
+ {
+ if (info.getMode().equals(mode))
+ {
+ return info;
+ }
+ }
+ return null;
+ }
public Set<WindowStateInfo> getAllWindowStates()
{
@@ -512,6 +524,18 @@
return Collections.unmodifiableSet(mimeTypeInfo.windowStates);
}
+ public WindowStateInfo getWindowState(WindowState windowState)
+ {
+ for (WindowStateInfo info: windowStates)
+ {
+ if (info.getWindowState().equals(windowState))
+ {
+ return info;
+ }
+ }
+ return null;
+ }
+
public Set<Locale> getAllLocales()
{
return locales;