Package org.infoglue.cms.entities.management

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


   
    SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), deliveryContext.getContentId()).getSiteNodeVO(db, deliveryContext.getSiteNodeId());
    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 = URLComposer.getURLComposer().composeDigitalAssetUrl(dnsName, null, fileName, deliveryContext);

    return assetUrl; 
View Full Code Here


     
      SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), deliveryContext.getContentId()).getSiteNodeVO(db, deliveryContext.getSiteNodeId());
      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 = URLComposer.getURLComposer().composeDigitalAssetUrl(dnsName, null, fileName, deliveryContext);

      rollbackTransaction(db);
    }
View Full Code Here

      ps.setString("repository_" + this.getRepositoryId() + "_defaultFolderContentTypeName", defaultFolderContentTypeName);
      ps.setString("repository_" + this.getRepositoryId() + "_defaultTemplateRepository", defaultTemplateRepository);
      ps.setString("repository_" + this.getRepositoryId() + "_parentRepository", parentRepository);
     
      //TODO - hack to get the caches to be updated when properties are affected..
      RepositoryVO repositoryVO = RepositoryController.getController().getFirstRepositoryVO();
      repositoryVO.setDescription(repositoryVO.getDescription() + ".");
      RepositoryController.getController().update(repositoryVO);
      CacheController.clearCache("parentRepository");
     
      return "save";
    }
View Full Code Here

  private RepositoryVO repositoryVO;
  private String returnAddress = null;
 
  public DeleteRepositoryAction()
  {
    this(new RepositoryVO());
  }
View Full Code Here

            else
            {
        //None found - we create it and give it the name of the repository.
        logger.info("Found no rootContent so we create a new....");
        ContentVO rootContentVO = new ContentVO();
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
        rootContentVO.setCreatorName(userName);
        rootContentVO.setName(repositoryVO.getName());
        rootContentVO.setIsBranch(new Boolean(true));
              Content content = create(db, null, null, repositoryId, rootContentVO);
              contentVO = content.getValueObject();
            }
           
View Full Code Here

      if(createIfNonExisting)
      {
        //None found - we create it and give it the name of the repository.
        logger.info("Found no rootContent so we create a new....");
        ContentVO rootContentVO = new ContentVO();
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
        rootContentVO.setCreatorName(userName);
        rootContentVO.setName(repositoryVO.getName());
        rootContentVO.setIsBranch(new Boolean(true));
        contentVO = create(db, null, null, repositoryId, rootContentVO).getValueObject();
      }
    }
   
View Full Code Here

      if(createIfNonExisting)
      {
        //None found - we create it and give it the name of the repository.
        logger.info("Found no rootContent so we create a new....");
        ContentVO rootContentVO = new ContentVO();
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);
        rootContentVO.setCreatorName(userName);
        rootContentVO.setName(repositoryVO.getName());
        rootContentVO.setIsBranch(new Boolean(true));
        content = create(db, null, null, repositoryId, rootContentVO);
      }
    }
   
View Full Code Here

      }
    }

    if (includeRepositoryName)
    {
      RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(contentVO.getRepositoryId(), db);
      if(repositoryVO != null)
        sb.insert(0, repositoryVO.getName() + "/");
    }
   
    return sb.toString();
  }
View Full Code Here

  public String getSiteNodePath(SiteNodeVO siteNodeVO, boolean includeRootSiteNode, boolean includeRepositoryName, Database db) throws Exception
  {
    StringBuffer sb = new StringBuffer();

    RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(siteNodeVO.getRepositoryId(), db);
    while(siteNodeVO != null)
    {
      if (includeRootSiteNode || siteNodeVO.getParentSiteNodeId() != null)
      {
        sb.insert(0, "/" + siteNodeVO.getName());
      }
      if(siteNodeVO.getParentSiteNodeId() != null)
        siteNodeVO = getSiteNodeVOWithId(siteNodeVO.getParentSiteNodeId(), db);
      else
        siteNodeVO = null;
    }

    if (includeRepositoryName)
    {
      if(repositoryVO != null)
        sb.insert(0, repositoryVO.getName() + "/");
    }

    return sb.toString().replaceAll("//", "/");
  }
View Full Code Here

  private String userAction = "";
  private ConstraintExceptionBuffer ceb;
 
  public UpdateRepositoryAction()
  {
    this(new RepositoryVO());
  }
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.