Examples of MediumContentCategoryImpl


Examples of org.infoglue.cms.entities.content.impl.simple.MediumContentCategoryImpl

   
    if(!exists)
    {
      logger.info("Creating the category " + category.getName() + " as it was not set on this version");
 
      contentCategory = new MediumContentCategoryImpl();
      contentCategory.setValueObject(c);
      contentCategory.setCategory((CategoryImpl)category);
      contentCategory.setContentVersion((MediumContentVersionImpl)contentVersion);
      db.create(contentCategory);
      contentVersion.getContentCategories().add(contentCategory);
View Full Code Here

Examples of org.infoglue.cms.entities.content.impl.simple.MediumContentCategoryImpl

    return contentCategory;
  }

  public ContentCategory createMediumWithDatabase(ContentCategoryVO c, Category category, ContentVersion contentVersion, Database db) throws SystemException, PersistenceException
  {
    ContentCategory contentCategory = new MediumContentCategoryImpl();
    contentCategory.setValueObject(c);
    contentCategory.setCategory((CategoryImpl)category);
    contentCategory.setContentVersion((MediumContentVersionImpl)contentVersion);
    db.create(contentCategory);
    return contentCategory;
  }
View Full Code Here

Examples of org.infoglue.cms.entities.content.impl.simple.MediumContentCategoryImpl

        //ContentCategory contentCategory = (ContentCategory)getObjectWithId(ContentCategoryImpl.class, id, db);
        //ContentVersion contentVersion = (ContentVersion)getObjectWithId(ContentVersionImpl.class, contentCategory.getContentVersionId(), db);
        Iterator contentCategoriesIterator = contentVersion.getContentCategories().iterator();
        while(contentCategoriesIterator.hasNext())
        {
          MediumContentCategoryImpl currentContentCategory = (MediumContentCategoryImpl)contentCategoriesIterator.next();
          ContentCategoryVO currentContentCategoryVO = currentContentCategory.getValueObject();
          if(currentContentCategoryVO.getAttributeName().equals(contentCategory.getAttributeName()) && currentContentCategory.getCategory().getId().equals(contentCategory.getCategory().getId()))
          {
            contentCategoriesIterator.remove();
            db.remove(currentContentCategory);
            break;
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.