mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user