Package org.apache.wiki.dav.items

Examples of org.apache.wiki.dav.items.DirectoryItem


        ArrayList<DirectoryItem> result = new ArrayList<DirectoryItem>();

        for( Iterator i = pageNames.iterator(); i.hasNext(); )
        {
            DirectoryItem di = new DirectoryItem( this, new DavPath( (String)i.next() ));

            result.add( di );
        }
        return result;
    }
View Full Code Here


    public DavItem getItem(DavPath path)
    {
        if( path.isRoot() )
        {
            DirectoryItem di = new DirectoryItem( this, new DavPath("") );

            di.addDavItems( listAllPagesWithAttachments() );
            return di;
        }
        else if( path.isDirectory() )
        {
            DirectoryItem di = new DirectoryItem( this, path );

            di.addDavItems( listAttachmentsOfPage(path) );

            return di;
        }
        else
        {
View Full Code Here

        //  Lists top-level elements
        //
        if( path.isRoot() )
        {
            log.info("Adding DAV items from path "+path);
            DirectoryItem di = new DirectoryItem( this, path );
           
            di.addDavItems( listAlphabeticals(path) );
           
            return di;
        }

        //
        //  Lists each item in each subdir
        //
        if( path.isDirectory() )
        {
            log.info("Listing pages in path "+path);
           
            DirectoryItem di = new DirectoryItem( this, path );
           
            di.addDavItems( listDirContents(path) );
           
            return di;
        }
       
        if( pname.endsWith(".html") && pname.length() > 5 )
View Full Code Here

       
        for( Iterator i = charList.iterator(); i.hasNext(); )
        {
            Character c = (Character)i.next();
           
            result.add( new DirectoryItem(this, new DavPath(c.toString())) );
        }
       
        return result;
    }
View Full Code Here

        //  Lists top-level elements
        //
        if( path.isRoot() )
        {
            log.info("Adding DAV items from path "+path);
            DirectoryItem di = new DirectoryItem( this, path );
           
            di.addDavItems( listAlphabeticals(path) );
           
            return di;
        }

        //
        //  Lists each item in each subdir
        //
        if( path.isDirectory() )
        {
            log.info("Listing pages in path "+path);
           
            DirectoryItem di = new DirectoryItem( this, path );
           
            di.addDavItems( listDirContents(path) );
           
            return di;
        }
       
        if( pname.endsWith(".txt") && pname.length() > 4 )
View Full Code Here

TOP

Related Classes of org.apache.wiki.dav.items.DirectoryItem

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.