1 23 24 package com.frovi.ss.tests; 25 26 import java.util.Iterator ; 27 import java.util.List ; 28 29 import org.infoglue.cms.controllers.kernel.impl.simple.ContentVersionController; 30 import org.infoglue.cms.entities.content.ContentVersionVO; 31 import org.infoglue.cms.exception.ConstraintException; 32 import org.infoglue.cms.exception.SystemException; 33 34 40 public class testRecursive { 41 42 public static void main(String [] args) throws ConstraintException, SystemException { 43 List l = ContentVersionController.getContentVersionController().getContentVersionVOWithParentRecursive(new Integer (84),new Integer (0), true); 44 45 Iterator it = l.iterator(); 46 ContentVersionVO contentVersionVO; 47 48 while (it.hasNext()) 49 { 50 Object o = it.next(); 51 52 contentVersionVO = (ContentVersionVO) o; 53 String cName = "N/A"; 54 cName = contentVersionVO.getContentName(); 55 56 String out = cName + " - " + 57 contentVersionVO.getLanguageName() 58 + "(state:" + contentVersionVO.getStateId() + " isactive: " + contentVersionVO.getIsActive() + ")"; 59 60 System.out.println(out); 61 62 } 63 64 65 } 66 } 67 | Popular Tags |