/** * Return only children of wikittyId passed in argument * * ATTENTION: extension is never checked. * * @deprecated since 3.1: use {@link #findTreeNode(java.lang.Class, java.lang.String, int, boolean, org.nuiton.wikitty.search.Criteria) } or open new ticket with your need */ @Deprecated public <E extends BusinessEntity> Map<E, Integer> findTreeNode( Class<E> clazz, String wikittyId, Criteria filter, boolean checkExtension) { Map<E, Integer> result = findTreeNode(clazz, wikittyId, filter); return result; }
/** * Restore node with wikittyId passed in argument and count of attachment * in subtree begin with this node * * @param <E> * @param clazz * @param wikittyId * @param filter * @return * @deprecated since 3.1: use {@link #findTreeNode(java.lang.Class, java.lang.String, int, boolean, org.nuiton.wikitty.search.Criteria)} or open new ticket with your need */ @Deprecated public <E extends BusinessEntity> Map.Entry<E, Integer> restoreNode( Class<E> clazz, String wikittyId, Criteria filter) { long start = TimeLog.getTime(); TreeNodeResult<E> tree = findTreeNode(clazz, wikittyId, 0, true, filter); Map.Entry<E, Integer> result = new SimpleEntry<E, Integer>( tree.getObject(), tree.getAttCount()); timeLog.log(start, "restoreNode"); return result; }
/** * Return only children of wikittyId passed in argument * * @param clazz * @param wikittyId * @param filter * @return * * @deprecated since 3.1: use {@link #findTreeNode(java.lang.Class, java.lang.String, int, boolean, org.nuiton.wikitty.search.Criteria) } or open new ticket with your need */ @Deprecated public <E extends BusinessEntity> Map<E, Integer> findTreeNode( Class<E> clazz, String wikittyId, Criteria filter) { long start = TimeLog.getTime(); TreeNodeResult<E> tree = findTreeNode(clazz, wikittyId, 1, true, filter); Map<E, Integer> result = new LinkedHashMap<E, Integer>(); for (TreeNodeResult<E> child : tree.getChildren()) { result.put(child.getObject(), child.getAttCount()); } timeLog.log(start, "findTreeNode"); return result; }