Package org.infoglue.cms.entities.management

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


       
        SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(null, deliveryContext.getLanguageId(), null, deliveryContext).getSiteNodeVO(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNodeVO != null)
        {
          RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
          if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
            dnsName = repositoryVO.getDnsName();
        }
        /*
        SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNode(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here


       
        SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId, deliveryContext).getSiteNodeVO(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNodeVO != null)
        {
          RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
          if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
            dnsName = repositoryVO.getDnsName();
        }
         
        String archiveBaseUrl = urlComposer.composeDigitalAssetUrl(dnsName, "extensions" + File.separator + fileName.substring(0, fileName.lastIndexOf(".")), deliveryContext);
     
        if(logger.isInfoEnabled())
View Full Code Here

       
        SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId, deliveryContext).getSiteNodeVO(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNodeVO != null)
        {
          RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
          if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
            dnsName = repositoryVO.getDnsName();
        }
        /*
        SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNode(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here

      SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(null, deliveryContext.getLanguageId(), null, deliveryContext).getSiteNodeVO(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNodeVO != null)
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
        if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
          dnsName = repositoryVO.getDnsName();
      }
      /*
      SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(null, deliveryContext.getLanguageId(), null, deliveryContext).getSiteNode(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here

   
      SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId, deliveryContext).getSiteNodeVO(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNodeVO != null)
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
        if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
          dnsName = repositoryVO.getDnsName();
      }
      /*
      SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNode(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here

     
      SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId, deliveryContext).getSiteNodeVO(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNodeVO != null)
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
        if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
          dnsName = repositoryVO.getDnsName();
      }
       
      //assetUrl = dnsName + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + thumbnailFileName;
      assetUrl = urlComposer.composeDigitalAssetUrl(dnsName, folderName, thumbnailFileName, deliveryContext);
    }
View Full Code Here

       
        SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId, deliveryContext).getSiteNodeVO(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNodeVO != null)
        {
          RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
          if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
            dnsName = repositoryVO.getDnsName();
        }
        /*
        SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNode(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here

      SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(null, deliveryContext.getLanguageId(), null, deliveryContext).getSiteNodeVO(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNodeVO != null)
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
        if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
          dnsName = repositoryVO.getDnsName();
      }
      /*
      SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(null, deliveryContext.getLanguageId(), null, deliveryContext).getSiteNode(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here

         
      //SiteNodeVO siteNodeVO = getSiteNodeVO(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNodeVO != null)
      {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
        if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
          dnsName = repositoryVO.getDnsName();
      }
      /*
      SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNodeVO(db, siteNodeId);
      String dnsName = CmsPropertyHandler.getWebServerAddress();
      if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
        dnsName = siteNode.getRepository().getDnsName();
      */

      return urlComposer.composeDigitalAssetUrl(dnsName, siteNodeId, contentId, languageId, assetKey, deliveryContext, db);
    }
    else if(contentVersion != null)
        {
          DigitalAssetVO digitalAsset = DigitalAssetController.getLatestDigitalAssetVO(contentVersion.getId(), assetKey, db);
     
      if(digitalAsset != null)
      {
        //String fileName = digitalAsset.getDigitalAssetId() + "_" + digitalAsset.getAssetFileName();
        String fileName = DigitalAssetDeliveryController.getAssetFileName(digitalAsset, contentId, languageId, db);
        //String folderName = "" + (digitalAsset.getDigitalAssetId().intValue() / 1000);
        String folderName = DigitalAssetDeliveryController.getAssetFolderName(digitalAsset, contentId, languageId, db);

        int i = 0;
        File masterFile = null;
        String filePath = CmsPropertyHandler.getDigitalAssetPath0() + File.separator + folderName;
        while(filePath != null)
        {
          try
          {
              if(masterFile == null)
                  masterFile = DigitalAssetDeliveryController.getDigitalAssetDeliveryController().dumpDigitalAsset(digitalAsset, fileName, filePath, db)
            else
                DigitalAssetDeliveryController.getDigitalAssetDeliveryController().dumpDigitalAsset(masterFile, fileName, filePath);
          }
          catch(Exception e)
          {
            logger.warn("An file could not be written:" + e.getMessage(), e);
          }
           
            i++;
            filePath = CmsPropertyHandler.getProperty("digitalAssetPath." + i);
            if(filePath != null)
              filePath += File.separator + folderName;
        }

        //SiteNodeVO siteNodeVO = getSiteNodeVO(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNodeVO != null)
        {
          RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
          if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
            dnsName = repositoryVO.getDnsName();
        }

        /*
        SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNode(db, siteNodeId);
        String dnsName = CmsPropertyHandler.getWebServerAddress();
        if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
          dnsName = siteNode.getRepository().getDnsName();
        */
         
        if(deliveryContext.getUseDownloadAction())
          assetUrl = urlComposer.composeDigitalAssetUrl(dnsName, siteNodeId, contentId, languageId, assetKey, deliveryContext, db);
        else
          assetUrl = urlComposer.composeDigitalAssetUrl(dnsName, folderName, fileName, deliveryContext);
      }
      else if(useLanguageFallback)
      {
        assetUrl = getLanguageIndependentAssetUrl(contentId, languageId, siteNodeId, db, assetKey, deliveryContext, infoGluePrincipal);
      }
    }       
    else if(useLanguageFallback && languageId != null && masterLanguageVO != null && languageId.intValue() != masterLanguageVO.getId().intValue())
    {
        contentVersion = getSmallestContentVersionVO(siteNodeId, contentId, languageId, db, useLanguageFallback, deliveryContext, infoGluePrincipal);
       
        logger.info("contentVersion:" + contentVersion);
      if(contentVersion != null)
      {
              DigitalAssetVO digitalAsset = DigitalAssetController.getLatestDigitalAssetVO(contentVersion.getId(), assetKey, db);
       
        if(digitalAsset != null)
        {
          //String fileName = digitalAsset.getDigitalAssetId() + "_" + digitalAsset.getAssetFileName();
          String fileName = DigitalAssetDeliveryController.getAssetFileName(digitalAsset, contentId, languageId, db);
          //String folderName = "" + (digitalAsset.getDigitalAssetId().intValue() / 1000);
          String folderName = DigitalAssetDeliveryController.getAssetFolderName(digitalAsset, contentId, languageId, db);
         
          int i = 0;
          File masterFile = null;
          String filePath = CmsPropertyHandler.getDigitalAssetPath0() + File.separator + folderName;
          while(filePath != null)
          {
            try
            {
                if(masterFile == null)
                    masterFile = DigitalAssetDeliveryController.getDigitalAssetDeliveryController().dumpDigitalAsset(digitalAsset, fileName, filePath, db);
              else
                  DigitalAssetDeliveryController.getDigitalAssetDeliveryController().dumpDigitalAsset(masterFile, fileName, filePath);
            }
            catch(Exception e)
            {
              logger.warn("An file could not be written:" + e.getMessage(), e);
            }
           
            i++;
            filePath = CmsPropertyHandler.getProperty("digitalAssetPath." + i);
              if(filePath != null)
                filePath += File.separator + folderName;
          }

          //SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNodeVO(db, siteNodeId);
          String dnsName = CmsPropertyHandler.getWebServerAddress();
          if(siteNodeVO != null)
          {
            RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
            if(repositoryVO.getDnsName() != null && !repositoryVO.getDnsName().equals(""))
              dnsName = repositoryVO.getDnsName();
          }
          /*
          SiteNode siteNode = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getSiteNode(db, siteNodeId);
          String dnsName = CmsPropertyHandler.getWebServerAddress();
          if(siteNode != null && siteNode.getRepository().getDnsName() != null && !siteNode.getRepository().getDnsName().equals(""))
View Full Code Here

    return buttons;
  }

  private ImageButton getPreviewButtons() throws Exception
  {
    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(this.repositoryId);
   
    String dnsName = repositoryVO.getDnsName();

      String workingUrl = null;
     
      String keyword = "working=";
      int startIndex = (dnsName == null) ? -1 : dnsName.indexOf(keyword);
View Full Code Here

TOP

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

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.