Fix for ALFCOM-2970: System properties are editable if configured to appear in a form, also added title and description for sys:node-dbid property

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14780 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2009-06-18 09:55:31 +00:00
parent be7433d596
commit 65bdf48d96
2 changed files with 9 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ sys_systemmodel.property.sys_store-identifier.title=Store Identifier
sys_systemmodel.property.sys_store-identifier.description=Store Identifier sys_systemmodel.property.sys_store-identifier.description=Store Identifier
sys_systemmodel.property.sys_node-uuid.title=Node Identifier sys_systemmodel.property.sys_node-uuid.title=Node Identifier
sys_systemmodel.property.sys_node-uuid.description=Node Identifier sys_systemmodel.property.sys_node-uuid.description=Node Identifier
sys_systemmodel.property.sys_node-dbid.title=Node DB Identifier
sys_systemmodel.property.sys_node-dbid.description=Node DB Identifier
sys_systemmodel.aspect.sys_archived.title=Archived sys_systemmodel.aspect.sys_archived.title=Archived
sys_systemmodel.aspect.sys_archived.description=Archived Node sys_systemmodel.aspect.sys_archived.description=Archived Node

View File

@@ -595,6 +595,13 @@ public class NodeFormProcessor extends FilteredFormProcessor
fieldDef.setProtectedField(propDef.isProtected()); fieldDef.setProtectedField(propDef.isProtected());
fieldDef.setRepeating(propDef.isMultiValued()); fieldDef.setRepeating(propDef.isMultiValued());
// any property from the system model (sys prefix) should be protected
// the model doesn't currently enforce this so make sure they are not editable
if (NamespaceService.SYSTEM_MODEL_1_0_URI.equals(propDef.getName().getNamespaceURI()))
{
fieldDef.setProtectedField(true);
}
// define the data key name and set // define the data key name and set
String dataKeyName = PROP_DATA_PREFIX + nameParts[0] + DATA_KEY_SEPARATOR + nameParts[1]; String dataKeyName = PROP_DATA_PREFIX + nameParts[0] + DATA_KEY_SEPARATOR + nameParts[1];
fieldDef.setDataKeyName(dataKeyName); fieldDef.setDataKeyName(dataKeyName);