Package org.infoglue.cms.entities.content

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


    testCategory = new CategoryVO();
    testCategory.setName(getName());
    testCategory.setDescription(getName() + " description");
    testCategory = testCategoryController.save(testCategory);

    testContentCategory = new ContentCategoryVO();
    testContentCategory.setAttributeName(getName());
    testContentCategory.setContentVersionId(VERSION_ID);
    testContentCategory.setCategory(testCategory);
    testContentCategory = testController.save(testContentCategory, InfoGluePrincipalControllerProxy.getController().getTestPrincipal());
  }
View Full Code Here


    testAction.getContentCategory().setContentVersionId(VERSION_ID);
    testAction.getContentCategory().getCategory().setCategoryId(testCategory.getId());

    assertSuccess(testAction, "add");

    ContentCategoryVO found = testController.findById(testAction.getContentCategoryId());
    assertEquals("ContentCategoy found is not the same as the one saved", testAction.getContentCategory(), found);
    extraContentCategories.add(found); // for cleanup
  }
View Full Code Here

      List orignals = contentCategoryController.findByContentVersion(originalContentVersion, db);
      logger.info("orignals:" + orignals.size() + " on " + originalContentVersion);
      for (Iterator iter = orignals.iterator(); iter.hasNext();)
      {
        ContentCategory contentCategory = (ContentCategory)iter.next();
        ContentCategoryVO vo = new ContentCategoryVO();
        vo.setAttributeName(contentCategory.getAttributeName());
        vo.setCategory(contentCategory.getCategory().getValueObject());
        vo.setContentVersionId(newContentVersionId);
        ContentCategory newContentCategory = contentCategoryController.createWithDatabase(vo, db);
        //newContentCategory
      }
    //}
  }
View Full Code Here

    setContentCategoryId(id);
  }

  public MediumContentCategoryImpl(ContentCategoryVO vo)
  {
    valueObject = (vo != null)? vo : new ContentCategoryVO();
  }
View Full Code Here

    setContentCategoryId(id);
  }

  public ContentCategoryImpl(ContentCategoryVO vo)
  {
    valueObject = (vo != null)? vo : new ContentCategoryVO();
  }
View Full Code Here

TOP

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

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.