Java Doc for FileManager.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » business » 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 » Blogger System » apache roller 3.1 » org.apache.roller.business 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.roller.business.FileManager

All known Subclasses:   org.apache.roller.business.FileManagerImpl,
FileManager
public interface FileManager (Code)
Interface for managing files uploaded to Roller.




Method Summary
public  voidcreateDirectory(WebsiteData weblog, String path)
     Create an empty subdirectory in the weblog's uploads area.
public  voiddeleteFile(WebsiteData weblog, String path)
     Delete file or directory from weblog's uploads area.
public  WeblogResource[]getDirectories(WebsiteData weblog)
     Get list of directories from a weblog's uploads area. This method will return an array of all dirs in the weblogs' uploads area, otherwise it will throw an exception.
Parameters:
  weblog - The weblog we are working on.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, or can't be read.
public  WeblogResourcegetFile(WebsiteData weblog, String path)
     Get a reference to a specific file in a weblog's uploads area. This method always returns a valid file or will throw an exception if the specificed path doesn't exist, is a directory, or can't be read.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the desired resource within the weblog's uploads area.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, is a directory, or can't be read.
public  WeblogResource[]getFiles(WebsiteData weblog, String path)
     Get list of files from a specific path of the weblog's uploads area. This method will return a WeblogResource[] array of all files at the given path if it exists, otherwise it will throw an exception. This method should return the files at the root of the weblog's uploads area given a path value of null, "" (empty string), or "/" This method should NOT return any resources which represent directories.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the desired resource within the weblog's uploads area.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, is not a directory, or can't be read.
public  booleanoverQuota(WebsiteData weblog)
     Is the given weblog over the file-upload quota limit?
Parameters:
  weblog - The weblog we are working on.
public  voidrelease()
     Release all resources associated with Roller session.
public  voidsaveFile(WebsiteData weblog, String path, String contentType, long size, InputStream is)
     Save a file to weblog's uploads area.



Method Detail
createDirectory
public void createDirectory(WebsiteData weblog, String path) throws FileNotFoundException, FilePathException, FileIOException(Code)
Create an empty subdirectory in the weblog's uploads area.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the desired location within the weblog's uploads area where the directory should be created.
throws:
  FileNotFoundException - If path to create location does not exist.
throws:
  FilePathException - If path is invalid, is not a directory, or can't be read.
throws:
  FileIOException - If there is an unexpected error during the create.



deleteFile
public void deleteFile(WebsiteData weblog, String path) throws FileNotFoundException, FilePathException, FileIOException(Code)
Delete file or directory from weblog's uploads area.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the file within the weblog's uploads area that should be deleted.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, or can't be read.
throws:
  FileIOException - If there is an unexpected error during the delete.



getDirectories
public WeblogResource[] getDirectories(WebsiteData weblog) throws FileNotFoundException, FilePathException(Code)
Get list of directories from a weblog's uploads area. This method will return an array of all dirs in the weblogs' uploads area, otherwise it will throw an exception.
Parameters:
  weblog - The weblog we are working on.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, or can't be read. WeblogResource[] of directories in website's uploads area.



getFile
public WeblogResource getFile(WebsiteData weblog, String path) throws FileNotFoundException, FilePathException(Code)
Get a reference to a specific file in a weblog's uploads area. This method always returns a valid file or will throw an exception if the specificed path doesn't exist, is a directory, or can't be read.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the desired resource within the weblog's uploads area.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, is a directory, or can't be read. WeblogResource representing the real file resource.



getFiles
public WeblogResource[] getFiles(WebsiteData weblog, String path) throws FileNotFoundException, FilePathException(Code)
Get list of files from a specific path of the weblog's uploads area. This method will return a WeblogResource[] array of all files at the given path if it exists, otherwise it will throw an exception. This method should return the files at the root of the weblog's uploads area given a path value of null, "" (empty string), or "/" This method should NOT return any resources which represent directories.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the desired resource within the weblog's uploads area.
throws:
  FileNotFoundException - If path does not exist.
throws:
  FilePathException - If path is invalid, is not a directory, or can't be read. WeblogResource[] of files in website's uploads area at given path.



overQuota
public boolean overQuota(WebsiteData weblog)(Code)
Is the given weblog over the file-upload quota limit?
Parameters:
  weblog - The weblog we are working on. True if weblog is over set quota, False otherwise.



release
public void release()(Code)
Release all resources associated with Roller session.



saveFile
public void saveFile(WebsiteData weblog, String path, String contentType, long size, InputStream is) throws FileNotFoundException, FilePathException, FileIOException(Code)
Save a file to weblog's uploads area.
Parameters:
  weblog - The weblog we are working on.
Parameters:
  path - The relative path to the desired location within the weblog's uploads area where the file should be saved.
Parameters:
  contentType - Content type of the file.
Parameters:
  size - Size of file to be saved.
Parameters:
  is - InputStream to read the file from.
throws:
  FileNotFoundException - If path to save location does not exist.
throws:
  FilePathException - If path is invalid, is not a directory, or can't be read.
throws:
  FileIOException - If there is an unexpected error during the save.



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