|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FolderHandler
FolderHandler
Method Summary | |
---|---|
Folder |
getFolder(java.lang.String path)
getFolder |
Folder |
getFolder(java.lang.String path,
boolean fromCache)
getFolder |
NodeSet |
getFolders(java.lang.String path)
getFolders |
NodeSet |
getNodes(java.lang.String path,
boolean regexp,
java.lang.String documentType)
getNodes |
boolean |
isFolder(java.lang.String path)
Returns true if the path is a folder |
java.lang.String[] |
list(java.lang.String folderPath,
java.lang.String documentType)
list |
java.lang.String[] |
listAll(java.lang.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 |
Method Detail |
---|
Folder getFolder(java.lang.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 folder
path
argument. Never returns null
DocumentException
- if there was an error processing the request.
InvalidFolderException
NodeException
DocumentNotFoundException
- If there is no folder at the path
specified.
FolderNotFoundException
void updateFolder(Folder folder) throws FailedToUpdateFolderException
updateFolder
Updates the folder specified with the folder
argument.
folder
- folder to update
FailedToUpdateFolderException
void removeFolder(Folder folder) throws FailedToDeleteFolderException
removeFolder
Removes the folder specified with the folder
argument.
folder
- folder to update
FailedToDeleteFolderException
Folder getFolder(java.lang.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 null
DocumentException
- if there was an error processing the request.
InvalidFolderException
NodeException
DocumentNotFoundException
- If there is no folder at the path
specified.
FolderNotFoundException
NodeSet getFolders(java.lang.String path) throws FolderNotFoundException, InvalidFolderException, NodeException
getFolders
path
- Path from which to locate child folders
path
argument.
FolderNotFoundException
- if folder under the path
does not actually
exist
DocumentException
- if an error is encountered reading the folders.
InvalidFolderException
NodeException
java.lang.String[] list(java.lang.String folderPath, java.lang.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.java.lang.String[] listAll(java.lang.String folderPath) throws FolderNotFoundException
FolderNotFoundException
NodeSet getNodes(java.lang.String path, boolean regexp, java.lang.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.
InvalidFolderException
NodeException
boolean isFolder(java.lang.String path)
path
-
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |