Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.CategoryVO


  private CategoryController controller = CategoryController.getController();
  private ContentCategoryController contentCategoryController = ContentCategoryController.getController();
  private boolean forceDelete = false;
   
  protected Persistent createModel()  { return new CategoryVO(); }
View Full Code Here


            CacheController.cacheObject("propertiesCategoryCache", key, categoryVOList);
          }
         
          if(propertiesCategory.getValueObject().getCategoryId() != null)
          {
            CategoryVO categoryVO = categoriesMap.get(propertiesCategory.getValueObject().getCategoryId());
            if(categoryVO != null)
              categoryVOList.add(categoryVO);
            else
              logger.info("An inconsistency found. The propertyCategory " + propertiesCategory.getId() + " pointed to a missing categoryID: " + propertiesCategory.getValueObject().getCategoryId());
            /*
 
View Full Code Here

    setCategoryId(id);
  }

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

  protected void setUp() throws Exception
  {
    super.setUp();

    testCategory = new CategoryVO();
    testCategory.setName(getName());
    testCategory.setDescription(getName() + " description");
    testCategory = testController.save(testCategory);
  }
View Full Code Here

    try
    {
      testAction.setCommand("save");
      assertResult(CategoryAction.MAIN, testAction.execute());
      CategoryVO newCategory = testAction.getCategory();
      assertEquals("Category name is wrong", testCategory.getName(), newCategory.getName());
      assertEquals("Category name is wrong", testCategory.getDescription(), newCategory.getDescription());
    }
    finally
    {
      testController.delete(testAction.getCategoryId());
    }
View Full Code Here

    testAction.getCategory().setParentId(new Integer(0));

    try
    {
      assertSuccess(testAction, "save");
      CategoryVO newCategory = testAction.getCategory();
      assertEquals("Category name is wrong", testCategory.getName(), newCategory.getName());
      assertEquals("Category description is wrong", testCategory.getDescription(), newCategory.getDescription());
    }
    finally
    {
      testController.delete(testAction.getCategoryId());
    }
View Full Code Here

    testAction.setCategoryId(testCategory.getCategoryId());
    testAction.getCategory().setParentId(parentId);
    assertSuccess(testAction, "move");

    CategoryVO updatedCategory = testAction.getCategory();
    assertEquals("Category parent is wrong", parentId, updatedCategory.getParentId());

    testCategory = testController.findById(testCategory.getId());
    assertEquals("Category parent is wrong", parentId, testCategory.getParentId());
  }
View Full Code Here

  private ContentCategoryController contentCategoryStore = ContentCategoryController.getController();
 
  protected void setUp() throws Exception
  {
    super.setUp();
    testCategory = new CategoryVO();
    testCategory.setName(getName());
    testCategory.setDescription(getName() + " description");

    testCategory = testController.save(testCategory);
  }
View Full Code Here

           contentCategoryStore.findByCategory(testCategory.getId()).isEmpty());
  }

  public void testFindById() throws Exception
  {
    CategoryVO found = testController.findById(testCategory.getId());
    assertEquals("Category data found does not match the created data", testCategory, found);
  }
View Full Code Here

    assertEquals("Category data found does not match the created data", testCategory, found);
  }

  public void testUpdate() throws Exception
  {
    CategoryVO updater = testController.findById(testCategory.getId());
    updater.setName("Updated Name");
    testController.save(updater);

    CategoryVO found = testController.findById(updater.getId());
    assertEquals("Category data found does not match the updated data", updater, found);
  }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.CategoryVO

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.