mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10724 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -161,6 +161,19 @@ public class DictionaryComponent implements DictionaryService, TenantDeployer
|
||||
}
|
||||
return aspects;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.dictionary.DictionaryService#getAllAssociations()
|
||||
*/
|
||||
public Collection<QName> getAllAssociations()
|
||||
{
|
||||
Collection<QName> associations = new ArrayList<QName>(64);
|
||||
for (QName model : getAllModels())
|
||||
{
|
||||
associations.addAll(getAssociations(model));
|
||||
}
|
||||
return associations;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -185,6 +198,20 @@ public class DictionaryComponent implements DictionaryService, TenantDeployer
|
||||
}
|
||||
return qnames;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.dictionary.DictionaryService#getAssociations(org.alfresco.repo.ref.QName)
|
||||
*/
|
||||
public Collection<QName> getAssociations(QName model)
|
||||
{
|
||||
Collection<AssociationDefinition> associations = dictionaryDAO.getAssociations(model);
|
||||
Collection<QName> qnames = new ArrayList<QName>(associations.size());
|
||||
for (AssociationDefinition def : associations)
|
||||
{
|
||||
qnames.add(def.getName());
|
||||
}
|
||||
return qnames;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
Reference in New Issue
Block a user