mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Dictionary optimisation: improve performance when getting sub classes and property defs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6825 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -126,6 +126,15 @@ public class DictionaryComponent implements DictionaryService, TenantDeployer
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.dictionary.DictionaryService#getSubTypes(org.alfresco.service.namespace.QName, boolean)
|
||||
*/
|
||||
public Collection<QName> getSubTypes(QName superType, boolean follow)
|
||||
{
|
||||
return dictionaryDAO.getSubTypes(superType, follow);
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.dictionary.DictionaryService#getTypes(org.alfresco.repo.ref.QName)
|
||||
*/
|
||||
@@ -155,6 +164,15 @@ public class DictionaryComponent implements DictionaryService, TenantDeployer
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.dictionary.DictionaryService#getSubAspects(org.alfresco.service.namespace.QName, boolean)
|
||||
*/
|
||||
public Collection<QName> getSubAspects(QName superAspect, boolean follow)
|
||||
{
|
||||
return dictionaryDAO.getSubAspects(superAspect, follow);
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.dictionary.DictionaryService#getAspects(org.alfresco.repo.ref.QName)
|
||||
*/
|
||||
@@ -278,6 +296,19 @@ public class DictionaryComponent implements DictionaryService, TenantDeployer
|
||||
}
|
||||
return propDef;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.dictionary.DictionaryService#getPropertyDefs(org.alfresco.service.namespace.QName)
|
||||
*/
|
||||
public Map<QName,PropertyDefinition> getPropertyDefs(QName className)
|
||||
{
|
||||
ClassDefinition classDef = dictionaryDAO.getClass(className);
|
||||
if (classDef != null)
|
||||
{
|
||||
return classDef.getProperties();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
Reference in New Issue
Block a user