portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r758568 - in /portals/jetspeed-2/portal/trunk: components/jetspeed-portal/src/main/java/org/apache/jetspeed/events/EventCoordinationServiceImpl.java jetspeed-portal-resources/src/main/ddl-schema/registry-schema.xml
Date Thu, 26 Mar 2009 09:20:19 GMT
Author: ate
Date: Thu Mar 26 09:20:08 2009
New Revision: 758568

URL: http://svn.apache.org/viewvc?rev=758568&view=rev
Log:
Portlet event payload value type can be null

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/events/EventCoordinationServiceImpl.java
    portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/ddl-schema/registry-schema.xml

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/events/EventCoordinationServiceImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/events/EventCoordinationServiceImpl.java?rev=758568&r1=758567&r2=758568&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/events/EventCoordinationServiceImpl.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/events/EventCoordinationServiceImpl.java
Thu Mar 26 09:20:08 2009
@@ -187,14 +187,17 @@
         {
             for (EventDefinition def : events)
             {
-                if (def.getQName() != null)
+                if (def.getValueType() != null)
                 {
-                    if (def.getQName().equals(qname)) { return value.getClass().getName().equals(def.getValueType());
}
-                }
-                else
-                {
-                    QName tmp = new QName(app.getDefaultNamespace(), def.getName());
-                    if (tmp.equals(qname)) { return value.getClass().getName().equals(def.getValueType());
}
+                    if (def.getQName() != null)
+                    {
+                        if (def.getQName().equals(qname)) { return value.getClass().getName().equals(def.getValueType());
}
+                    }
+                    else
+                    {
+                        QName tmp = new QName(app.getDefaultNamespace(), def.getName());
+                        if (tmp.equals(qname)) { return value.getClass().getName().equals(def.getValueType());
}
+                    }
                 }
             }
         }

Modified: portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/ddl-schema/registry-schema.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/ddl-schema/registry-schema.xml?rev=758568&r1=758567&r2=758568&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/ddl-schema/registry-schema.xml
(original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/ddl-schema/registry-schema.xml
Thu Mar 26 09:20:08 2009
@@ -284,7 +284,7 @@
         <column name="LOCAL_PART" required="true" size="80" type="VARCHAR"/>
         <column name="NAMESPACE" required="false" size="80" type="VARCHAR"/>
         <column name="PREFIX" required="false" size="20" type="VARCHAR"/>        
-        <column name="VALUE_TYPE" required="true" size="120" type="VARCHAR"/>
+        <column name="VALUE_TYPE" required="false" size="255" type="VARCHAR"/>
         <foreign-key foreignTable="PORTLET_APPLICATION" name="FK_EVENT_DEFINITION_1" onDelete="cascade">
                       
             <reference foreign="APPLICATION_ID" local="APPLICATION_ID"/>          
 
         </foreign-key>    	



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message