com.ithit.webdav.server
Interface Folder

All Superinterfaces:
HierarchyItem

public interface Folder
extends HierarchyItem

Represents a folder in the WebDAV repository.

Defines methods that WebDAV server folder items must implement. In addition to methods provided by HierarchyItem this interface also provides methods for creating folders and files and enumerating folder children.


Method Summary
 File createFile(java.lang.String name)
          Creates new WebDAV file with the specified name in this folder.
 void createFolder(java.lang.String name)
          Creates new WebDAV folder with the specified name in this folder.
 java.util.List<? extends HierarchyItem> getChildren()
          Gets the array of this folder's children.
 
Methods inherited from interface com.ithit.webdav.server.HierarchyItem
copyTo, delete, getCreated, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updateProperties
 

Method Detail

getChildren

java.util.List<? extends HierarchyItem> getChildren()
                                                    throws ServerException
Gets the array of this folder's children.

Returns:
Array of HierarchyItem objects. Each item is a file or folder item.
Throws:
ServerException - In case of an error.

createFile

File createFile(java.lang.String name)
                throws LockedException,
                       ServerException
Creates new WebDAV file with the specified name in this folder.

Parameters:
name - Name of the file to create.
Returns:
Reference to created File.
Throws:
LockedException - This folder was locked. Client did not provide the lock token.
ServerException - In case of an error.

createFolder

void createFolder(java.lang.String name)
                  throws LockedException,
                         ServerException
Creates new WebDAV folder with the specified name in this folder.

Parameters:
name - Name of the folder to create.
Throws:
LockedException - This folder was locked. Client did not provide the lock token.
ServerException - In case of an error.


Copyright © 2009 ITHit. All Rights Reserved.