Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.Repository


      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();
View Full Code Here


        args.put("globalKey", "infoglue");
        PropertySet ps = PropertySetManager.getInstance("jdbc", args);
        //END TEST
     
      String names = "";
      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));

        ExportRepositoryAction.getContentPropertiesAndAccessRights(ps, allContentProperties, allAccessRights, content, db);
        ExportRepositoryAction.getSiteNodePropertiesAndAccessRights(ps, allSiteNodeProperties, allAccessRights, siteNode, db);
     
      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();
     
View Full Code Here

    Iterator readSiteNodesIterator = readSiteNodes.iterator();
    while(readSiteNodesIterator.hasNext())
    {
      SiteNode readSiteNode = (SiteNode)readSiteNodesIterator.next();

      Repository repositoryRead = readSiteNode.getRepository();
      logger.info(repositoryRead.getName());
     
      repositoryRead.setName(substituteStrings(repositoryRead.getName(), replaceMap));
      repositoryRead.setDescription(substituteStrings(repositoryRead.getDescription(), replaceMap));
      repositoryRead.setDnsName(substituteStrings(repositoryRead.getDnsName(), replaceMap));
     
      Content readContent = null;

      readContent = (Content)repositoryContentMap.get("" + repositoryRead.getId());
      //logger.info("readContent:" + readContent.getName() + ":" + readContent.getId());
     
      readContent.setRepository((RepositoryImpl)repositoryRead);

      Integer repositoryIdBefore = repositoryRead.getId();
      db.create(repositoryRead);
      Integer repositoryIdAfter = repositoryRead.getId();
      repositoryIdMap.put("" + repositoryIdBefore, "" + repositoryIdAfter);

      Collection repositoryLanguages = repositoryRead.getRepositoryLanguages();
      Iterator repositoryLanguagesIterator = repositoryLanguages.iterator();
      while(repositoryLanguagesIterator.hasNext())
      {
        RepositoryLanguage repositoryLanguage = (RepositoryLanguage)repositoryLanguagesIterator.next();
        Language originalLanguage = repositoryLanguage.getLanguage();
View Full Code Here

    Iterator readSiteNodesIterator = readSiteNodes.iterator();
    while(readSiteNodesIterator.hasNext())
    {
      SiteNode readSiteNode = (SiteNode)readSiteNodesIterator.next();

      Repository repositoryRead = readSiteNode.getRepository();
      logger.info(repositoryRead.getName());
     
      repositoryRead.setName(substituteStrings(repositoryRead.getName(), replaceMap));
      repositoryRead.setDescription(substituteStrings(repositoryRead.getDescription(), replaceMap));
      repositoryRead.setDnsName(substituteStrings(repositoryRead.getDnsName(), replaceMap));
     
      Content readContent = null;

      readContent = (Content)repositoryContentMap.get("" + repositoryRead.getId());
      //logger.info("readContent:" + readContent.getName() + ":" + readContent.getId());
     
      readContent.setRepository((RepositoryImpl)repositoryRead);

      Integer repositoryIdBefore = repositoryRead.getId();
      db.create(repositoryRead);
      Integer repositoryIdAfter = repositoryRead.getId();
      repositoryIdMap.put("" + repositoryIdBefore, "" + repositoryIdAfter);

      Collection repositoryLanguages = repositoryRead.getRepositoryLanguages();
      Iterator repositoryLanguagesIterator = repositoryLanguages.iterator();
      while(repositoryLanguagesIterator.hasNext())
      {
        RepositoryLanguage repositoryLanguage = (RepositoryLanguage)repositoryLanguagesIterator.next();
        Language originalLanguage = repositoryLanguage.getLanguage();
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.Repository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.