summaryrefslogtreecommitdiff
path: root/src/main/resources/mapFiles/PropertiesMap.xml
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-12-12 14:13:36 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-12-12 14:13:36 +0100
commit428d828ca640d1348979f9982d1c0bc0a489a3b4 (patch)
treea40b0f8fa46942f5e9d4c805a4df724ee5a5aa6b /src/main/resources/mapFiles/PropertiesMap.xml
parentd5d65f58e69424d898f88e8304a49f147d4036f6 (diff)
Properties preserve and respect the PropertyDescription 'isMutable'
property. This setting prevents the WriteProperty predefined step from changing the property value when isMutable is false. WriteProperty also requires the selected property to already exist - they should be created either during Item instantiation or using AddC2KObject. LDAPPropertyManager prepends the Property name in its entries with ! if they are non mutable. Various places around the kernel that create properties now set the mutable field. Fixes #150
Diffstat (limited to 'src/main/resources/mapFiles/PropertiesMap.xml')
-rw-r--r--src/main/resources/mapFiles/PropertiesMap.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/resources/mapFiles/PropertiesMap.xml b/src/main/resources/mapFiles/PropertiesMap.xml
index cdb27fc..b13d98d 100644
--- a/src/main/resources/mapFiles/PropertiesMap.xml
+++ b/src/main/resources/mapFiles/PropertiesMap.xml
@@ -5,6 +5,9 @@
<field name="mName" type="string" direct="false" get-method="getName" set-method="setName">
<bind-xml name="name" node="attribute"/>
</field>
+ <field name="mMutable" type="boolean" direct="false" get-method="isMutable" set-method="setMutable">
+ <bind-xml name="mutable" node="attribute"/>
+ </field>
<field name="mValue" type="string" direct="false" get-method="getValue" set-method="setValue">
<bind-xml node="text"/>
</field>