mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix AR-521: Constraints are inherited (added test to ensure) and overridable (new)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2970 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -204,7 +204,10 @@ import org.alfresco.service.namespace.QName;
|
||||
}
|
||||
|
||||
|
||||
/*package*/ void resolveInheritance(ModelQuery query)
|
||||
/*package*/ void resolveInheritance(
|
||||
ModelQuery query,
|
||||
NamespacePrefixResolver prefixResolver,
|
||||
Map<QName, ConstraintDefinition> modelConstraints)
|
||||
{
|
||||
// Retrieve parent class
|
||||
ClassDefinition parentClass = (parentName == null) ? null : query.getClass(parentName);
|
||||
@@ -221,7 +224,9 @@ import org.alfresco.service.namespace.QName;
|
||||
}
|
||||
else
|
||||
{
|
||||
inheritedProperties.put(def.getName(), new M2PropertyDefinition(this, def, override));
|
||||
inheritedProperties.put(
|
||||
def.getName(),
|
||||
new M2PropertyDefinition(this, def, override, prefixResolver, modelConstraints));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user