Package org.infoglue.cms.entities.content.impl.simple

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


    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

        //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

Related Classes of org.infoglue.cms.entities.content.impl.simple.MediumContentCategoryImpl

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.