Package org.jboss.seam.wiki.core.model

Examples of org.jboss.seam.wiki.core.model.WikiTreeNode


        if (requestedCategory != null) {
            log.debug("trying to resolve requested category: " + requestedCategory);
            WikiDirectory dir = wikiNodeDAO.findWikiDirectoryInArea(currentDirectory.getAreaNumber(), requestedCategory);
            if (dir != null) {
                log.debug("found requested category, setting selected directory: " + dir);
                selectedDir = new WikiTreeNode(0, dir);
                showQuestions();
            }
        }
        if (selectedDir == null) {
            log.debug("setting selected directory to current directory");
            selectedDir = new WikiTreeNode(0, wikiNodeDAO.findWikiDirectory(currentDirectory.getId()));
        }
    }
View Full Code Here


    @Override
    public Object getAsObject(FacesContext facesContext,
                              UIComponent uiComponent, String s)
            throws ConverterException {
        Object o = super.getAsObject(facesContext, uiComponent, s);
        return new WikiTreeNode(0, (WikiNode) o);
    }
View Full Code Here

                .setHint("org.hibernate.comment", "Querying children of wiki node: " + parentNodeId)
                .setParameter("parentNodeId", parentNodeId)
                .setParameter("readAccessLevel", Component.getInstance("currentAccessLevel"))
                .getResultList();
        for (WikiNode node : nodes) {
            tree.add(new WikiTreeNode(currentLevel, node));
            if (maxDepth == null || currentLevel < maxDepth) {
                if (flattenToLevel == null || currentLevel < flattenToLevel) {
                    currentLevel++;
                    appendWikiNodeChildren(query, tree, node.getId(), currentLevel, maxDepth, flattenToLevel);
                    currentLevel--;
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.model.WikiTreeNode

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.