Package org.infoglue.cms.entities.content

Examples of org.infoglue.cms.entities.content.ContentVO


    StringBuffer sb = new StringBuffer("");
    try
   
      if(entity.equalsIgnoreCase("Content"))
      {
        ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(entityId));
        if(contentVO != null)
        {
          sb.insert(0, contentVO.getName() + "/");
          while(contentVO.getParentContentId() != null)
          {
            contentVO = ContentController.getContentController().getContentVOWithId(contentVO.getParentContentId());
            sb.insert(0, contentVO.getName() + "/");
          }
        }
        else
          logger.warn("A content has a content relation to a removed content. entityId: " + entityId);
      }
View Full Code Here


    return qualifyers;
  }
 
    public ViewContentVersionAction()
    {
        this(new ContentVO(), new ContentVersionVO());
    }
View Full Code Here

    {
      if(contentVO.getParentContentId() == null)
        return contentVO;
      else
      {
        ContentVO parentContentVO = ContentController.getContentController().getContentVOWithId(contentVO.getParentContentId());
        return getRootContent(parentContentVO);
      }
    }
View Full Code Here

     
      logger.info("this.contentVO:" + this.contentVO);
      logger.info("this.contentVO.getParentContentId():" + this.contentVO.getParentContentId());
        if(this.contentVO != null && this.contentVO.getParentContentId() != null)
        {
          ContentVO repoRootContentVO = getRootContent(this.contentVO);
          logger.info("repoRootContentVO:" + repoRootContentVO);
             if(this.contentVO.getRepositoryId() != null && repoRootContentVO.getRepositoryId() != null && !this.contentVO.getRepositoryId().equals(repoRootContentVO.getRepositoryId()))
            {
            logger.info("The content was not the same repo - will fix: " + this.contentVO);
            ContentController.getContentController().changeRepository(this.contentVO.getId(), repoRootContentVO.getRepositoryId());
            logger.info("The content was not - fixed: " + this.contentVO);
            this.contentVO = ContentControllerProxy.getController().getACContentVOWithId(this.getInfoGluePrincipal(), contentId);
            }   
        }
       
View Full Code Here

    return eventVO;
  }

  public List getContentPath()
  {
    ContentVO contentVO = this.contentVO;
    List ret = new ArrayList();
    // ret.add(0, contentVO);

    while (contentVO.getParentContentId() != null)
    {
      try {
        contentVO = ContentControllerProxy.getController().getContentVOWithId(contentVO.getParentContentId());
      } catch (SystemException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (Bug e) {
        // TODO Auto-generated catch block
View Full Code Here

      {
        List children = ContentControllerProxy.getContentController().getContentChildrenVOList(contentId, null, false);
        Iterator childrenIterator = children.iterator();
        while(childrenIterator.hasNext())
        {
          ContentVO child = (ContentVO)childrenIterator.next();
          getInheritedDigitalAssetsRecursive(filteredDigitalAssets, child.getId(), languageId, maxNumberOfAssets);
        }
      }
    }
    catch(Exception e)
    {
View Full Code Here

            SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(new Integer(entityId));
            path = siteNodeVO.getName();
          }
          else if(entityName.equalsIgnoreCase("Content"))
          {
            ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(entityId));
            path = contentVO.getName();
          }
         
          Map binding = new HashMap();
          binding.put("entityName", entityName);
          binding.put("entityId", entityId);
View Full Code Here

  {
    String template = null;
     
    try
    {
      ContentVO contentVO = NodeDeliveryController.getNodeDeliveryController(siteNodeId, languageId, contentId).getBoundContent(this.getInfoGluePrincipal(), siteNodeId, languageId, true, "Meta information", DeliveryContext.getDeliveryContext());

      if(contentVO == null)
        throw new SystemException("There was no template bound to this page which makes it impossible to render.")
     
      ContentVersionVO contentVersionVO = ContentVersionController.getContentVersionController().getLatestActiveContentVersionVO(contentVO.getId(), languageId);
      if(contentVersionVO == null)
      {
        SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId);
        LanguageVO masterLanguage = LanguageController.getController().getMasterLanguage(siteNodeVO.getRepositoryId());
        contentVersionVO = ContentVersionController.getContentVersionController().getLatestActiveContentVersionVO(contentVO.getId(), masterLanguage.getLanguageId());
      }
     
      template = ContentVersionController.getContentVersionController().getAttributeValue(contentVersionVO.getId(), "ComponentStructure", false);
     
      if(template == null)
View Full Code Here

     */
    public void clean(final Integer contentId, final int hitSize2Retain, InfoGluePrincipal principal) throws Exception
    {
        final Database db = CastorDatabaseService.getDatabase();
        beginTransaction(db);
        final ContentVO contentVO = contentController.getContentVOWithId(contentId);               
        final List<LanguageVO> languageVOList = languageController.getLanguageVOList(db);
        commitTransaction(db);
        clean(contentVO, hitSize2Retain, languageVOList, principal);
    }
View Full Code Here

     */
    public void clean(final Integer contentId, final int hitSize2Retain, final List<LanguageVO> languageVOList, InfoGluePrincipal principal) throws Exception
    {
        final Database db = CastorDatabaseService.getDatabase();
        beginTransaction(db);
        final ContentVO contentVO = contentController.getContentVOWithId(contentId);               
        commitTransaction(db);
        clean(contentVO, hitSize2Retain, languageVOList, principal);
    }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.content.ContentVO

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.