mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Dictionary/Constraint improvements (required by MOB-1276)
- get constraints (for model) - add optional title and/or description git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -932,6 +932,15 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
return namespaces;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.dictionary.DictionaryDAO#getConstraints(org.alfresco.service.namespace.QName)
|
||||
*/
|
||||
public Collection<ConstraintDefinition> getConstraints(QName modelName)
|
||||
{
|
||||
CompiledModel model = getCompiledModel(modelName);
|
||||
return model.getConstraints();
|
||||
}
|
||||
|
||||
// re-entrant (eg. via reset)
|
||||
private DictionaryRegistry getDictionaryRegistry(String tenantDomain)
|
||||
{
|
||||
|
Reference in New Issue
Block a user