Java Doc for FileSystemWorkArea.java in  » Groupware » hipergate » com » knowgate » workareas » 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 » Groupware » hipergate » com.knowgate.workareas 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.knowgate.dfs.FileSystem
      com.knowgate.workareas.FileSystemWorkArea

FileSystemWorkArea
public class FileSystemWorkArea extends FileSystem (Code)



Constructor Summary
public  FileSystemWorkArea(Properties oEnvProps)
    

Method Summary
public  booleanmkstorpath(int iDomain, String sWorkArea, String sPath)
    

Create a complete directory branch under storage root directory

The given path is appended to storage/domains/iDomain/workareas/sWorkArea/ and the full resulting path is created if it does not exist.
Parameters:
  iDomain - Domain Numeric Identifier
Parameters:
  sWorkArea - WorkArea GUID
Parameters:
  sPath - Relative path to be created under workarea directory.
public  booleanmkworkpath(String sWorkArea, String sPath)
    

Create a complete directory branch under workarea root directory.

The given path is appended to "file://" + workareasput + sWorkArea and the full resulting path is created if it does not exist.
public  booleanmkworkpath(String sWorkArea)
    
public  booleanrmstorpath(int iDomain, String sWorkArea, String sPath)
    
public  booleanrmstorpath(int iDomain, String sWorkArea)
    
public  booleanrmworkpath(String sWorkArea, String sPath)
    

Delete a directory and all its subdirectories and files under workarea root directory at /web branch.

The given path is appended to "file://" + workareasput + sWorkArea, the resulting directory and all its childs are deleted.
public  booleanrmworkpath(String sWorkArea)
    

Delete workarea root directory at /web branch.

The given path is appended to "file://" + workareasput + , the resulting directory and all its childs are deleted.


Constructor Detail
FileSystemWorkArea
public FileSystemWorkArea(Properties oEnvProps)(Code)




Method Detail
mkstorpath
public boolean mkstorpath(int iDomain, String sWorkArea, String sPath) throws Exception, IOException(Code)

Create a complete directory branch under storage root directory

The given path is appended to storage/domains/iDomain/workareas/sWorkArea/ and the full resulting path is created if it does not exist.
Parameters:
  iDomain - Domain Numeric Identifier
Parameters:
  sWorkArea - WorkArea GUID
Parameters:
  sPath - Relative path to be created under workarea directory. For example:"ROOT/DOMAINS/TEST1/TEST1_USERS/TEST1_administrator/TEST1_administrator_temp"If sPath is null hen the workarea root directory itself will be created.
throws:
  IOException -
throws:
  IllegalArgumentException - If sWorkArea is null



mkworkpath
public boolean mkworkpath(String sWorkArea, String sPath) throws Exception, IOException(Code)

Create a complete directory branch under workarea root directory.

The given path is appended to "file://" + workareasput + sWorkArea and the full resulting path is created if it does not exist.
Parameters:
  sWorkArea - WorkArea GUID
Parameters:
  sPath - Relative path to be created under workareas root directory
throws:
  IOException -
throws:
  IllegalArgumentException - If sWorkArea is null



mkworkpath
public boolean mkworkpath(String sWorkArea) throws IOException, IllegalArgumentException(Code)

Create workarea root directory at /web branch


Parameters:
  oProps - Properties collection containing workareasput property
Parameters:
  sWorkArea - WorkArea GUID
throws:
  IllegalArgumentException - If sWorkArea is null



rmstorpath
public boolean rmstorpath(int iDomain, String sWorkArea, String sPath) throws Exception, IOException(Code)

Remove workarea files under /storage branch


Parameters:
  iDomain - WorkArea Domain Numeric Identifier
Parameters:
  sWorkArea - WorkArea GUID
Parameters:
  sPath - Relative path from workarea subdirectory to delete.
throws:
  Exception -
throws:
  IOException -



rmstorpath
public boolean rmstorpath(int iDomain, String sWorkArea) throws Exception, IOException(Code)

Remove workarea files under /storage branch


Parameters:
  iDomain - WorkArea Domain Numeric Identifier
Parameters:
  sWorkArea - WorkArea GUID
throws:
  Exception -
throws:
  IOException -



rmworkpath
public boolean rmworkpath(String sWorkArea, String sPath) throws IOException, IllegalArgumentException(Code)

Delete a directory and all its subdirectories and files under workarea root directory at /web branch.

The given path is appended to "file://" + workareasput + sWorkArea, the resulting directory and all its childs are deleted.
Parameters:
  sWorkArea - WorkArea GUID
Parameters:
  sPath - Relative path to be created under workareas root directory
throws:
  IOException -
throws:
  IllegalArgumentException - If sWorkArea is null



rmworkpath
public boolean rmworkpath(String sWorkArea) throws IOException, IllegalArgumentException(Code)

Delete workarea root directory at /web branch.

The given path is appended to "file://" + workareasput + , the resulting directory and all its childs are deleted.
Parameters:
  sWorkArea - WorkArea GUID
throws:
  IOException -
throws:
  IllegalArgumentException - If sWorkArea is null



Fields inherited from com.knowgate.dfs.FileSystem
final public static int OS_PUREJAVA(Code)(Java Doc)
final public static int OS_UNIX(Code)(Java Doc)
final public static int OS_WINDOWS(Code)(Java Doc)
protected String SLASH(Code)(Java Doc)

Methods inherited from com.knowgate.dfs.FileSystem
public static void convert(String sFilePath, String sOldCharset, String sNewCharset) throws FileNotFoundException, IOException, UnsupportedEncodingException(Code)(Java Doc)
public boolean copy(String sSourceURI, String sTargetURI) throws MalformedURLException, IOException, Exception(Code)(Java Doc)
public boolean delete(String sFullURI) throws IOException(Code)(Java Doc)
public boolean delete(String sFullURI, String sDeferedFiles) throws IOException(Code)(Java Doc)
public static String detectEncoding(File oFile, String sDefault) throws FileNotFoundException, IOException(Code)(Java Doc)
public String detectEncoding(String sFilePath, String sDefault) throws FileNotFoundException, IOException, FTPException(Code)(Java Doc)
protected String file()(Code)(Java Doc)
public int filelen(String sFullURI) throws IOException(Code)(Java Doc)
protected String host()(Code)(Java Doc)
public boolean mkdirs(String sFullURI) throws Exception, IOException(Code)(Java Doc)
public boolean move(String sSourceURI, String sTargetURI) throws Exception, IOException(Code)(Java Doc)
public void os(int iOperatingSystem)(Code)(Java Doc)
public void password(String sPassword)(Code)(Java Doc)
public String password()(Code)(Java Doc)
protected String path()(Code)(Java Doc)
public static char[] readfile(String sFilePath) throws FileNotFoundException, IOException, OutOfMemoryError, FTPException(Code)(Java Doc)
public static char[] readfile(String sFilePath, String sCharSet) throws FileNotFoundException, IOException, OutOfMemoryError, FTPException(Code)(Java Doc)
public byte[] readfilebin(String sFilePath) throws MalformedURLException, FTPException, FileNotFoundException, IOException, OutOfMemoryError(Code)(Java Doc)
public String readfilestr(String sFilePath, String sEncoding) throws MalformedURLException, FTPException, FileNotFoundException, IOException, OutOfMemoryError(Code)(Java Doc)
public boolean rename(String sSourceURI, String sTargetURI) throws Exception, IOException, ProtocolException(Code)(Java Doc)
public boolean rmdir(String sFullURI) throws IOException(Code)(Java Doc)
protected void splitURI(String sURI)(Code)(Java Doc)
public void user(String sUser)(Code)(Java Doc)
public String user()(Code)(Java Doc)
public void writefilebin(String sFilePath, byte[] aBytes) throws IOException(Code)(Java Doc)
public void writefilestr(String sFilePath, String sText, String sEncoding) throws IOException, OutOfMemoryError(Code)(Java Doc)

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.