paths1.length) { return -1; } else { return 1; } } } List al = new ArrayList(); List pathList = new ArrayList(); String qs = "from NodeDocument"; Session session = HibernateUtil.getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); Query q = session.createQuery(qs); List docVersionList = q.list(); HibernateUtil.commit(tx); for (NodeDocument ndv : docVersionList) { String path = OKMRepository.getInstance().getNodePath(null,ndv.getUuid()); if (path.startsWith("/okm:root/")) { pathList.add(path); } } HibernateUtil.close(session); // Ordering by path Collections.sort(pathList, new PathSorter()); // Initialize older map Map older = new HashMap(); for (int i=1; i"+dob.get("path"+i)); } print("
"); al.add(dob); } return al]]>
<band height="44" splitType="Stretch"> <image> <reportElement key="image-1" x="631" y="0" width="150" height="35"/> <imageExpression class="java.lang.String"><![CDATA["http://localhost:8080/OpenKM/logo/report"]]></imageExpression> </image> <textField pattern="yyyy/MM/dd" isBlankWhenNull="false"> <reportElement key="textField-13" x="0" y="0" width="65" height="10" forecolor="#010101"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="8" isBold="true" isUnderline="false"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression> </textField> <textField pattern="h.mm.ss a" isBlankWhenNull="false"> <reportElement key="textField-14" x="0" y="10" width="65" height="10" forecolor="#010101"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="8" isBold="true" isUnderline="false"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression> </textField> <line> <reportElement key="line-3" x="1" y="39" width="781" height="1" forecolor="#010101"/> <graphicElement fill="Solid"/> </line> <staticText> <reportElement x="256" y="0" width="297" height="44"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="SansSerif" size="22" isBold="true" isPdfEmbedded="false"/> </textElement> <text><![CDATA[Accessible Documents]]></text> </staticText> </band>