mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-1208 & MOB-1214: Form customisation improvements, generated form UI model now creates a 'map' of fields so that they can be directly accessed in custom templates (this provides the groundwork required to fix the RM record metadata screen). Default controls mapping have dropped the "d:" prefix as this is a repo detail and should be generic.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15723 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -206,8 +206,7 @@ public abstract class ContentModelFormProcessor extends FilteredFormProcessor
|
|||||||
String propName = propDef.getName().toPrefixString(namespaceService);
|
String propName = propDef.getName().toPrefixString(namespaceService);
|
||||||
String[] nameParts = QName.splitPrefixedQName(propName);
|
String[] nameParts = QName.splitPrefixedQName(propName);
|
||||||
PropertyFieldDefinition fieldDef = new PropertyFieldDefinition(
|
PropertyFieldDefinition fieldDef = new PropertyFieldDefinition(
|
||||||
propName, propDef.getDataType().getName().toPrefixString(
|
propName, propDef.getDataType().getName().getLocalName());
|
||||||
namespaceService));
|
|
||||||
|
|
||||||
String title = propDef.getTitle();
|
String title = propDef.getTitle();
|
||||||
if (title == null)
|
if (title == null)
|
||||||
@@ -697,8 +696,7 @@ public abstract class ContentModelFormProcessor extends FilteredFormProcessor
|
|||||||
{
|
{
|
||||||
String dataKeyName = PROP_DATA_PREFIX + TRANSIENT_MIMETYPE;
|
String dataKeyName = PROP_DATA_PREFIX + TRANSIENT_MIMETYPE;
|
||||||
PropertyFieldDefinition mimetypeField = new PropertyFieldDefinition(
|
PropertyFieldDefinition mimetypeField = new PropertyFieldDefinition(
|
||||||
TRANSIENT_MIMETYPE, DataTypeDefinition.TEXT.toPrefixString(
|
TRANSIENT_MIMETYPE, DataTypeDefinition.TEXT.getLocalName());
|
||||||
this.namespaceService));
|
|
||||||
mimetypeField.setLabel(I18NUtil.getMessage(MSG_MIMETYPE_LABEL));
|
mimetypeField.setLabel(I18NUtil.getMessage(MSG_MIMETYPE_LABEL));
|
||||||
mimetypeField.setDescription(I18NUtil.getMessage(MSG_MIMETYPE_DESC));
|
mimetypeField.setDescription(I18NUtil.getMessage(MSG_MIMETYPE_DESC));
|
||||||
mimetypeField.setDataKeyName(dataKeyName);
|
mimetypeField.setDataKeyName(dataKeyName);
|
||||||
@@ -720,8 +718,7 @@ public abstract class ContentModelFormProcessor extends FilteredFormProcessor
|
|||||||
{
|
{
|
||||||
String dataKeyName = PROP_DATA_PREFIX + TRANSIENT_ENCODING;
|
String dataKeyName = PROP_DATA_PREFIX + TRANSIENT_ENCODING;
|
||||||
PropertyFieldDefinition encodingField = new PropertyFieldDefinition(
|
PropertyFieldDefinition encodingField = new PropertyFieldDefinition(
|
||||||
TRANSIENT_ENCODING, DataTypeDefinition.TEXT.toPrefixString(
|
TRANSIENT_ENCODING, DataTypeDefinition.TEXT.getLocalName());
|
||||||
this.namespaceService));
|
|
||||||
encodingField.setLabel(I18NUtil.getMessage(MSG_ENCODING_LABEL));
|
encodingField.setLabel(I18NUtil.getMessage(MSG_ENCODING_LABEL));
|
||||||
encodingField.setDescription(I18NUtil.getMessage(MSG_ENCODING_DESC));
|
encodingField.setDescription(I18NUtil.getMessage(MSG_ENCODING_DESC));
|
||||||
encodingField.setDataKeyName(dataKeyName);
|
encodingField.setDataKeyName(dataKeyName);
|
||||||
@@ -743,8 +740,7 @@ public abstract class ContentModelFormProcessor extends FilteredFormProcessor
|
|||||||
{
|
{
|
||||||
String dataKeyName = PROP_DATA_PREFIX + TRANSIENT_SIZE;
|
String dataKeyName = PROP_DATA_PREFIX + TRANSIENT_SIZE;
|
||||||
PropertyFieldDefinition sizeField = new PropertyFieldDefinition(
|
PropertyFieldDefinition sizeField = new PropertyFieldDefinition(
|
||||||
TRANSIENT_SIZE, DataTypeDefinition.LONG.toPrefixString(
|
TRANSIENT_SIZE, DataTypeDefinition.LONG.getLocalName());
|
||||||
this.namespaceService));
|
|
||||||
sizeField.setLabel(I18NUtil.getMessage(MSG_SIZE_LABEL));
|
sizeField.setLabel(I18NUtil.getMessage(MSG_SIZE_LABEL));
|
||||||
sizeField.setDescription(I18NUtil.getMessage(MSG_SIZE_DESC));
|
sizeField.setDescription(I18NUtil.getMessage(MSG_SIZE_DESC));
|
||||||
sizeField.setDataKeyName(dataKeyName);
|
sizeField.setDataKeyName(dataKeyName);
|
||||||
|
Reference in New Issue
Block a user