Test fix up

Result set clean up
Added security for Ownership/People and Authentication public services

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2153 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2006-01-20 08:55:03 +00:00
parent 1a1e8f5ebf
commit 964dc2283a
4 changed files with 427 additions and 43 deletions

View File

@@ -152,16 +152,28 @@ public class DictionaryRepositoryBootstrap
// Register the models found in the respository
for (RepositoryLocation repositoryLocation : this.repositoryLocations)
{
ResultSet resultSet = this.searchService.query(repositoryLocation.getStoreRef(), SearchService.LANGUAGE_LUCENE, repositoryLocation.getQueryStatement());
for (NodeRef dictionaryModel : resultSet.getNodeRefs())
ResultSet resultSet = null;
try
{
M2Model model = createM2Model(dictionaryModel);
if (model != null)
resultSet = this.searchService.query(repositoryLocation.getStoreRef(), SearchService.LANGUAGE_LUCENE, repositoryLocation.getQueryStatement());
for (NodeRef dictionaryModel : resultSet.getNodeRefs())
{
for (M2Namespace namespace : model.getNamespaces())
M2Model model = createM2Model(dictionaryModel);
if (model != null)
{
modelMap.put(namespace.getUri(), model);
}
for (M2Namespace namespace : model.getNamespaces())
{
modelMap.put(namespace.getUri(), model);
}
}
}
}
finally
{
if (resultSet != null)
{
resultSet.close();
}
}
}