Author: julien_viet
Date: 2009-10-05 07:01:45 -0400 (Mon, 05 Oct 2009)
New Revision: 276
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetContentProvider.java
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetState.java
components/mop/trunk/core/src/main/resources/conf/standalone/nodetypes.xml
Log:
fix minor bug in gadget state handling
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetContentProvider.java
===================================================================
---
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetContentProvider.java 2009-10-05
10:57:47 UTC (rev 275)
+++
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetContentProvider.java 2009-10-05
11:01:45 UTC (rev 276)
@@ -60,7 +60,7 @@
if (state == null) {
return;
} else {
- Node stateNode = node.addNode("state",
"mop:portletpreferences");
+ Node stateNode = node.addNode("state", "mop:gadget");
prefs = (GadgetState)session.findById(Object.class, stateNode.getUUID());
}
}
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetState.java
===================================================================
---
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetState.java 2009-10-05
10:57:47 UTC (rev 275)
+++
components/mop/trunk/core/src/main/java/org/gatein/mop/core/content/gadget/GadgetState.java 2009-10-05
11:01:45 UTC (rev 276)
@@ -26,7 +26,7 @@
@NodeMapping(name = "mop:gadget")
public abstract class GadgetState {
- @Property(name = "userprefs")
+ @Property(name = "prefs")
public abstract String getUserPrefs();
public abstract void setUserPrefs(String userPrefs);
Modified: components/mop/trunk/core/src/main/resources/conf/standalone/nodetypes.xml
===================================================================
--- components/mop/trunk/core/src/main/resources/conf/standalone/nodetypes.xml 2009-10-05
10:57:47 UTC (rev 275)
+++ components/mop/trunk/core/src/main/resources/conf/standalone/nodetypes.xml 2009-10-05
11:01:45 UTC (rev 276)
@@ -56,6 +56,17 @@
</propertyDefinitions>
</nodeType>
+ <nodeType name="mop:gadget" isMixin="false"
hasOrderableChildNodes="false" primaryItemName="">
+ <supertypes>
+ <supertype>mop:customizationstate</supertype>
+ </supertypes>
+ <propertyDefinitions>
+ <propertyDefinition name="prefs" requiredType="String"
autoCreated="false" mandatory="false" onParentVersion="COPY"
protected="false" multiple="false">
+ <valueConstraints/>
+ </propertyDefinition>
+ </propertyDefinitions>
+ </nodeType>
+
<nodeType name="mop:contexttypecontainer" isMixin="false"
hasOrderableChildNodes="false" primaryItemName="">
<supertypes>
<supertype>nt:base</supertype>
Show replies by date