Package org.apache.jetspeed.page.document

Examples of org.apache.jetspeed.page.document.Node


     *         LINK_OPTION_TYPE
     */
    public String getType()
    {
        // return type of menu option node proxy
        Node node = getNode();
        if (node instanceof Page)
        {
            return PAGE_OPTION_TYPE;
        }
        else if (node instanceof Link)
View Full Code Here


        // get skin from definition, from menu option
        // node proxy, or inherit from parent menu
        String skin = definition.getSkin();
        if (skin == null)
        {
            Node node = getNode();
            if (node instanceof Page)
            {
                skin = ((Page)node).getSkin();
            }
            else if (node instanceof Link)
View Full Code Here

     * @return url target
     */
    public String getTarget()
    {
        // only link nodes support target
        Node node = getNode();
        if (node instanceof Link)
        {
            return ((Link)node).getTarget();
        }
        return null;
View Full Code Here

     * @return url target
     */
    public String getDefaultPage()
    {
        // only link nodes support target
        Node node = getNode();
        if (node instanceof Folder)
        {
            return ((Folder)node).getDefaultPage();
        }
        return null;
View Full Code Here

            {
            }
            if (requestPage != null)
            {
                // get selected status based or request page url
                Node node = getNode();
                if (node instanceof Page)
                {
                    // page urls must match the request page
                    // urls to be considered selected
                    return requestPage.getUrl().equals(node.getUrl());
                }
                else if (node instanceof Folder)
                {
                    // folder urls must be a prefix of the
                    // request page urls to be considered
                    // selected
                    return requestPage.getUrl().startsWith(node.getUrl());
                }
            }
        }
        return false;
    }
View Full Code Here

                // create and save proxies for concrete children
                NodeSet children = folder.getAll();
                Iterator childrenIter = children.iterator();
                while (childrenIter.hasNext())
                {
                    Node child = (Node)childrenIter.next();
                    String childName = child.getName();

                    // filter profiling property folders; they are
                    // accessed only via SiteView search path
                    // aggregation that directly utilizes the
                    // current view page manager
View Full Code Here

                try
                {
                    NodeSet children = currentFolder.getAll();
                    if (children != null)
                    {
                        Node node = children.get(currentPath);
                        if ((node != null) && (!onlyVisible || !node.isHidden() || (node == currentPage)) &&
                            (!onlyViewable || isProxyViewable(node, onlyVisible)))
                        {
                            return node;
                        }
                    }
View Full Code Here

                            {
                                List proxies = null;
                                Iterator childrenIter = children.iterator();
                                while (childrenIter.hasNext())
                                {
                                    Node child = (Node)childrenIter.next();
                                    if ((!onlyVisible || !child.isHidden() || (child == currentPage)) &&
                                        (!onlyViewable || isProxyViewable(child, onlyVisible)))
                                    {
                                        if (proxies == null)
                                        {
                                            proxies = new ArrayList(children.size());
                                        }
                                        proxies.add(child);
                                    }
                                }
                                return proxies;
                            }
                        }
                        else
                        {
                            // access remaining path as page, folder, or link
                            // node proxy; return null if not found or not
                            // viewable and visiblity is required
                            Node child = children.get(currentRegexpPath);
                            if ((child != null) && (!onlyVisible || !child.isHidden() || (child == currentPage)) &&
                                (!onlyViewable || isProxyViewable(child, onlyVisible)))
                            {
                                List proxies = new ArrayList(1);
                                proxies.add(currentFolder);
                                return proxies;
View Full Code Here

                if (children != null)
                {
                    Iterator childrenIter = children.iterator();
                    while (childrenIter.hasNext())
                    {
                        Node child = (Node)childrenIter.next();
                        if ((!onlyVisible || !child.isHidden()) && isProxyViewable(child, onlyVisible))
                        {
                            return true;
                        }
                    }
                }
View Full Code Here

        if (view != null)
        {
            // define menu node for titles and metadata if options
            // specifies a single visible page or folder proxy
            String options = definition.getOptions();
            Node optionProxy = null;
            if ((options != null) && (options.indexOf(',') == -1))
            {
                try
                {
                    optionProxy = view.getNodeProxy(options, context.getPage(), true, true);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.page.document.Node

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.