Package org.infoglue.cms.entities.content

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


  private Map<String, Map<ContentVO, List<ReferenceBean>>> groupByContactPerson(Map<ContentVO, List<ReferenceBean>> contactPersons)
  {
    Map<String, Map<ContentVO, List<ReferenceBean>>> result = new HashMap<String, Map<ContentVO,  List<ReferenceBean>>>();
    for (Map.Entry<ContentVO, List<ReferenceBean>> entry : contactPersons.entrySet())
    {
      ContentVO contentVO = entry.getKey();
      Map<String, List<ReferenceBean>> referencesByContact = groupByContactPerson(entry.getValue());
      for (Map.Entry<String, List<ReferenceBean>> contactsForSiteNode : referencesByContact.entrySet())
      {
        String contactPerson = contactsForSiteNode.getKey();
        Map<ContentVO,  List<ReferenceBean>> value = result.get(contactPerson);
View Full Code Here


  }

  public ContentVO getContentVOWithId(Integer contentId, boolean skipCaching) throws SystemException, Bug
    {
    String key = "" + contentId;
    ContentVO contentVO = (ContentVO)CacheController.getCachedObjectFromAdvancedCache("contentCache", key);
    if(contentVO != null)
    {
      //logger.info("There was an cached contentVO:" + contentVO);
    }
    else
View Full Code Here

    }

  public ContentVO getContentVOWithId(Integer contentId) throws SystemException, Bug
    {
    String key = "" + contentId;
    ContentVO contentVO = (ContentVO)CacheController.getCachedObjectFromAdvancedCache("contentCache", key);
    if(contentVO != null)
    {
      //logger.info("There was an cached contentVO:" + contentVO);
    }
    else
View Full Code Here

    }

  public ContentVO getContentVOWithId(Integer contentId, Database db) throws SystemException, Bug
    {
    String key = "" + contentId;
    ContentVO contentVO = (ContentVO)CacheController.getCachedObjectFromAdvancedCache("contentCache", key);
    if(contentVO != null)
    {
      //logger.info("There was an cached contentVO:" + contentVO);
    }
    else
View Full Code Here

    if(deliveryContext != null)
      deliveryContext.addUsedContent(CacheController.getPooledString(1, contentId));

    String key = "" + contentId;
    ContentVO contentVO = (ContentVO)CacheController.getCachedObjectFromAdvancedCache("contentCache", key);
    if(contentVO != null)
    {
      //logger.info("There was an cached contentVO:" + contentVO);
    }
    else
View Full Code Here

    {
      MediumContentImpl content = null;
   
        try
        {           
            ContentVO parentContentVO = null;

            if(parentContentId != null)
            {
              parentContentVO = getContentVOWithId(parentContentId, db);
             
              if(repositoryId == null)
          repositoryId = parentContentVO.getRepositoryId()
             
              if(parentContentVO.getIsBranch() == false)
              {
                Content parentContent = getMediumContentWithId(parentContentVO.getId(), db);
                parentContent.setIsBranch(new Boolean(true));
              }
            }
           
            //RepositoryVO repository = RepositoryController.getController().getRepositoryVOWithId(repositoryId, db);
View Full Code Here

   * @throws Bug
   */
     
    public void delete(Integer contentId, boolean forceDelete, InfoGluePrincipal infogluePrincipal) throws Bug, Exception
    {
      ContentVO contentVO = ContentControllerProxy.getController().getACContentVOWithId(infogluePrincipal, contentId);
     
      delete(contentVO, infogluePrincipal, forceDelete);
    }
View Full Code Here

   
  public List<LanguageVO> getAvailableLanguagesForContentWithId(Integer contentId, Database db) throws ConstraintException, SystemException, Exception
  {
    List<LanguageVO> availableLanguageVOList = new ArrayList<LanguageVO>();
   
    ContentVO content = getContentVOWithId(contentId, db);
    if(content != null)
    {
      //Repository repository = content.getRepository();
      if(content.getRepositoryId() != null)
      {
        availableLanguageVOList = LanguageController.getController().getAvailableLanguageVOListForRepository(content.getRepositoryId(), db);
          /*
        List availableRepositoryLanguageList = RepositoryLanguageController.getController().getRepositoryLanguageListWithRepositoryId(content.getRepositoryId(), db);
        Iterator i = availableRepositoryLanguageList.iterator();
        while(i.hasNext())
        {
View Full Code Here

    {
      if(contentVO.getParentContentId() == null)
        return null;

        Database db = CastorDatabaseService.getDatabase();
    ContentVO parentContentVO = null;
   
        beginTransaction(db);

        try
        {
View Full Code Here

   * This method returns the value-object of the parent of a specific content.
   */
    public static ContentVO getParentContent(Integer contentId) throws SystemException, Bug
    {
        Database db = CastorDatabaseService.getDatabase();
    ContentVO parentContentVO = null;
   
        beginTransaction(db);

        try
        {
          //Content content = (Content) getObjectWithId(ContentImpl.class, contentId, db);
      //Content parent = content.getParentContent();

          ContentVO content = getContentController().getContentVOWithId(contentId, db);

      if(content != null && content.getParentContentId() != null)
        parentContentVO = getContentController().getContentVOWithId(content.getParentContentId(), db);
           
            commitTransaction(db);
        }
        catch(Exception e)
        {
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.