public interface FolderHandler
FolderHandler
| Modifier and Type | Method and Description |
|---|---|
Folder |
getFolder(String path)
getFolder
|
Folder |
getFolder(String path,
boolean fromCache)
getFolder
|
NodeSet |
getFolders(String path)
getFolders
|
NodeSet |
getNodes(String path,
boolean regexp,
String documentType)
getNodes
|
boolean |
isFolder(String path)
Returns true if the path is a folder
|
String[] |
list(String folderPath,
String documentType)
list
|
String[] |
listAll(String folderPath) |
void |
removeFolder(Folder folder)
removeFolder
|
void |
shutdown()
shutdown - gracefully shutdown handler and disconnect
from other singleton components, (e.g.
|
void |
updateFolder(Folder folder)
updateFolder
|
Folder getFolder(String path) throws FolderNotFoundException, InvalidFolderException, NodeException
getFolder
Locates a folder given using the path argument. This should behave
as getFolder("folder/subfolder, true);
path - fully-quallified path to a folderpath argument. Never returns nullDocumentException - if there was an error processing the request.InvalidFolderExceptionNodeExceptionDocumentNotFoundException - If there is no folder at the path specified.FolderNotFoundExceptionvoid updateFolder(Folder folder) throws FailedToUpdateFolderException
updateFolder
Updates the folder specified with the folder argument.
folder - folder to updateFailedToUpdateFolderExceptionvoid removeFolder(Folder folder) throws FailedToDeleteFolderException
removeFolder
Removes the folder specified with the folder argument.
folder - folder to updateFailedToDeleteFolderExceptionFolder getFolder(String path, boolean fromCache) throws FolderNotFoundException, InvalidFolderException, NodeException
getFolder
Locates a folder given using the path argument.
path - fully-quallified path to a folderfromCache - whether or not to check the cache first before checking the underlying folder
repository.path argument. Never returns nullDocumentException - if there was an error processing the request.InvalidFolderExceptionNodeExceptionDocumentNotFoundException - If there is no folder at the path specified.FolderNotFoundExceptionNodeSet getFolders(String path) throws FolderNotFoundException, InvalidFolderException, NodeException
getFolders
path - Path from which to locate child folderspath argument.FolderNotFoundException - if folder under the path does not actually
existDocumentException - if an error is encountered reading the folders.InvalidFolderExceptionNodeExceptionString[] list(String folderPath, String documentType) throws FolderNotFoundException
list
generates a list of document names, relative to the folderPath argument
of the type indicated by the documentType argument.
folderPath - folder path to search underdocumentType - document type to filter on.String[] of child document names relative to the folderPath
argument and matching the documentType argument.FolderNotFoundException - if the folderPath does not exsit.String[] listAll(String folderPath) throws FolderNotFoundException
FolderNotFoundExceptionNodeSet getNodes(String path, boolean regexp, String documentType) throws FolderNotFoundException, InvalidFolderException, NodeException
getNodes
Returns a set of nodes relative to the folder argument of the type
indicated by the documentType argument. The folder argument
may include regular expressions if indicated by the regex argument. The
returned set is unordered.
path - Path from which to locate documentsregexp - Flag indicating whether regexp should be expanded in pathdocumentType - document type to filter on.path argument.FolderNotFoundException - if folder under the path does not actually exist.DocumentException - if an error is encountered reading the folders.InvalidFolderExceptionNodeExceptionboolean isFolder(String path)
path - void shutdown()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.