Java Doc for FileSystemFolderHandler.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » page » document » psml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » jetspeed 2.1.3 » org.apache.jetspeed.page.document.psml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jetspeed.page.document.psml.FileSystemFolderHandler

FileSystemFolderHandler
public class FileSystemFolderHandler implements FolderHandler,FileCacheEventListener(Code)

FileSystemFolderHandler

Implementation of FolderHanlder that is based off of the file system.


author:
   Scott T. Weaver
version:
   $Id: FileSystemFolderHandler.java 553584 2007-07-05 18:09:45Z taylor $

Inner Class :public class DocumentTypeFilter implements FilenameFilter

Field Summary
final protected static  FilenameFilterFOLDER_FILTER
    

Constructor Summary
public  FileSystemFolderHandler(String documentRoot, DocumentHandlerFactory handlerFactory, FileCache fileCache)
    

Method Summary
protected  voidaddToCache(String id, Object objectToCache)
    
public  voidevict(FileCacheEntry entry)
    
protected  String[]getChildrenNames(String path, FilenameFilter filter)
    
public  FoldergetFolder(String path)
    
public  FoldergetFolder(String path, boolean fromCache)
    
public  NodeSetgetFolders(String path)
    
public  NodeSetgetNodes(String path, boolean regexp, String documentType)
    
public  booleanisFolder(String path)
    
public  String[]list(String folderPath, String documentType)
    
public  String[]listAll(String folderPath)
    
public  voidrefresh(FileCacheEntry entry)
    
public  voidremoveFolder(Folder folder)
    
public  voidupdateFolder(Folder folder)
    
protected  voidverifyPath(File path)
    

Field Detail
FOLDER_FILTER
final protected static FilenameFilter FOLDER_FILTER(Code)




Constructor Detail
FileSystemFolderHandler
public FileSystemFolderHandler(String documentRoot, DocumentHandlerFactory handlerFactory, FileCache fileCache) throws FileNotFoundException, UnsupportedDocumentTypeException(Code)

Parameters:
  documentRoot - directory on file system to use as the root when locatingfolders
Parameters:
  handlerFactory - A DocumentHandlerFactory
Parameters:
  fileCache - For caching folder instances
throws:
  FileNotFoundException - if the documentRoot does not exist
throws:
  UnsupportedDocumentTypeException - if no DocumentHnadler could be found thatsupports folder metadata (folder.metadata) in thehandlerFactory.




Method Detail
addToCache
protected void addToCache(String id, Object objectToCache)(Code)

addToCache


Parameters:
  id -
Parameters:
  objectToCache -



evict
public void evict(FileCacheEntry entry) throws Exception(Code)

evict


See Also:   org.apache.jetspeed.cache.file.FileCacheEventListener.evict(org.apache.jetspeed.cache.file.FileCacheEntry)
Parameters:
  entry -
throws:
  Exception -



getChildrenNames
protected String[] getChildrenNames(String path, FilenameFilter filter) throws FolderNotFoundException(Code)



getFolder
public Folder getFolder(String path) throws FolderNotFoundException, InvalidFolderException, NodeException(Code)

getFolder


See Also:   org.apache.jetspeed.page.document.FolderHandler.getFolder(java.lang.String)
Parameters:
  path - @throwsFolderNotFoundException
throws:
  FolderNotFoundException -
throws:
  InvalidFolderException -
throws:
  NodeException -
throws:
  DocumentNotFoundException -



getFolder
public Folder getFolder(String path, boolean fromCache) throws NodeException, FolderNotFoundException, InvalidFolderException(Code)

getFolder


See Also:   org.apache.jetspeed.page.document.FolderHandler.getFolder(java.lang.Stringboolean)
Parameters:
  path -
Parameters:
  fromCache - @throwsDocumentException, FolderNotFoundException
throws:
  InvalidFolderException -
throws:
  DocumentNotFoundException -



getFolders
public NodeSet getFolders(String path) throws FolderNotFoundException, InvalidFolderException, NodeException(Code)

getFolders


See Also:   org.apache.jetspeed.page.document.FolderHandler.getFolders(java.lang.String)
Parameters:
  path - @throwsFolderNotFoundException
throws:
  FolderNotFoundException -
throws:
  InvalidFolderException -
throws:
  NodeException -



getNodes
public NodeSet getNodes(String path, boolean regexp, String documentType) throws FolderNotFoundException, InvalidFolderException, NodeException(Code)

getChildNodes


See Also:   org.apache.jetspeed.page.document.FolderHandler.getNodes(java.lang.Stringbooleanjava.lang.String)
Parameters:
  path -
Parameters:
  regexp -
Parameters:
  documentType - NodeSet
throws:
  FolderNotFoundException -
throws:
  DocumentException -
throws:
  InvalidFolderException -
throws:
  NodeException -



isFolder
public boolean isFolder(String path)(Code)



list
public String[] list(String folderPath, String documentType) throws FolderNotFoundException(Code)

list


See Also:   org.apache.jetspeed.page.document.FolderHandler.list(java.lang.String)
Parameters:
  documentType - @throwsFolderNotFoundException



listAll
public String[] listAll(String folderPath) throws FolderNotFoundException(Code)

listAll


See Also:   org.apache.jetspeed.page.document.FolderHandler.listAll(java.lang.String)
Parameters:
  folderPath - @throwsFolderNotFoundException



refresh
public void refresh(FileCacheEntry entry) throws Exception(Code)

refresh


See Also:   org.apache.jetspeed.cache.file.FileCacheEventListener.refresh(org.apache.jetspeed.cache.file.FileCacheEntry)
Parameters:
  entry -
throws:
  Exception -



removeFolder
public void removeFolder(Folder folder) throws FailedToDeleteFolderException(Code)

removeFolder


See Also:   org.apache.jetspeed.page.document.FolderHandler.removeFolder(org.apache.jetspeed.om.folder.Folder)
Parameters:
  folder -
throws:
  FailedToDeleteFolderException -



updateFolder
public void updateFolder(Folder folder) throws FailedToUpdateFolderException(Code)

updateFolder


See Also:   org.apache.jetspeed.page.document.FolderHandler.updateFolder(org.apache.jetspeed.om.folder.Folder)
Parameters:
  folder -
throws:
  FailedToUpdateFolderException -



verifyPath
protected void verifyPath(File path) throws FileNotFoundException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.