String names = "";
String[] repositories = getRequest().getParameterValues("repositoryId");
for(int i=0; i<repositories.length; i++)
{
Integer repositoryId = new Integer(repositories[i]);
Repository repository = RepositoryController.getController().getRepositoryWithId(repositoryId, db);
SiteNode siteNode = SiteNodeController.getController().getRootSiteNode(repositoryId, db);
Content content = ContentController.getContentController().getRootContent(repositoryId, db);
InterceptionPointVO interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName("Repository.Read", db);
if(interceptionPointVO != null)
allAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));
interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName("Repository.Write", db);
if(interceptionPointVO != null)
allAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));
interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName("Repository.ReadForBinding", db);
if(interceptionPointVO != null)
allAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));
getContentPropertiesAndAccessRights(ps, allContentProperties, allAccessRights, content, db);
if(siteNode != null)
getSiteNodePropertiesAndAccessRights(ps, allSiteNodeProperties, allAccessRights, siteNode, db);
if(siteNode != null)
siteNodes.add(siteNode);
contents.add(content);
names = names + "_" + repository.getName();
allRepositoryProperties.putAll(OptimizedExportController.getRepositoryProperties(ps, repositoryId));
}
List contentTypeDefinitions = ContentTypeDefinitionController.getController().getContentTypeDefinitionList(db);
List categories = CategoryController.getController().getAllActiveCategories();