mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixes for supporting full repository export/import.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2625 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -246,7 +246,7 @@ public class NodeContext extends ElementContext
|
||||
PropertyDefinition propDef = getDictionaryService().getProperty(property);
|
||||
|
||||
// Process Alfresco UUID
|
||||
if (propDef != null && propDef.getName().equals(ContentModel.PROP_NODE_UUID))
|
||||
if (uuid == null && propDef != null && propDef.getName().equals(ContentModel.PROP_NODE_UUID))
|
||||
{
|
||||
uuid = value;
|
||||
}
|
||||
@@ -311,6 +311,25 @@ public class NodeContext extends ElementContext
|
||||
return nodeProperties;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.alfresco.repo.importer.ImportNode#getPropertyDataType(org.alfresco.service.namespace.QName)
|
||||
*/
|
||||
public DataTypeDefinition getPropertyDataType(QName propertyName)
|
||||
{
|
||||
// get property datatype
|
||||
DataTypeDefinition valueDataType = propertyDatatypes.get(propertyName);
|
||||
if (valueDataType == null)
|
||||
{
|
||||
PropertyDefinition propDef = getDictionaryService().getProperty(propertyName);
|
||||
if (propDef != null)
|
||||
{
|
||||
valueDataType = propDef.getDataType();
|
||||
}
|
||||
}
|
||||
return valueDataType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds an aspect to the node
|
||||
*
|
||||
@@ -517,5 +536,5 @@ public class NodeContext extends ElementContext
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user