Java Doc for AbstractVirtualFileSystem.java in  » Content-Management-System » harmonise » org » openharmonise » vfs » 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 » Content Management System » harmonise » org.openharmonise.vfs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.vfs.AbstractVirtualFileSystem

All known Subclasses:   org.openharmonise.vfs.AbstractVersioningVFS,  org.openharmonise.localfilesystem.LocalFileSystem,  org.openharmonise.ftp.client.FTPFileSystem,
AbstractVirtualFileSystem
abstract public class AbstractVirtualFileSystem (Code)
This is the abstract class from which all Virtual File Systems implementations should extend.
author:
   Matthew Large
version:
   $Revision: 1.1 $


Field Summary
protected  Stringm_sInitialPath
     The initial path for the underlying file system, e.g.
protected  Stringm_sRootPathSegment
     The root path segment for the underlying file system, e.g.

Constructor Summary
public  AbstractVirtualFileSystem(URI uri)
    
public  AbstractVirtualFileSystem(URI uri, AuthInfo authInfo)
    
public  AbstractVirtualFileSystem(URI uri, AbstractAuthenticationStore authStore)
    

Method Summary
public  voidaddErrorListener(VirtualFileSystemErrorListener listener)
    
protected  voidaddFileAllowedMethod(VirtualFile vfFile, String sMethod)
    
abstract public  ResourceStatusWrapperaddVirtualFile(String sPath, VirtualFile vfFile)
    
protected  voidclearAllFileProperties(VirtualFile vfFile)
    
protected  voidclearFileAllowedMethods(VirtualFile vfFile)
    
protected  voidclearVirtualFileChildren(VirtualFile vfFile)
    
abstract public  StatusDatacopyVirtualFile(String sFromFullPath, String sToFullPath)
    
abstract public  StatusDatacreateShortcut(String sFullPath, String sToFullPath)
    
abstract public  StatusDatacreateVirtualDirectory(String sFullPath)
    
abstract public  StringcurrentUserResourcePath(AuthInfo authInfo)
    
abstract public  StatusDatadeleteVirtualFile(String sFullPath)
    
public  voiddiscardFileChanges(String sPath)
    
abstract public  booleanexists(String sFullPath)
    
protected  voidfireErrorEvent(String sMessage, String sDetails)
    
abstract protected  voidfullyPopulateFileAllowedMethods(VirtualFile vfFile)
    
abstract protected  voidfullyPopulateFileChildren(VirtualFile vfFile)
    
abstract protected  voidfullyPopulateFileMetadata(VirtualFile vfFile)
    
public  AuthInfogetAuthentication()
     Returns authentication information for the current user for this file system.
abstract public  ListgetChangedVirtualFiles()
    
public  StringgetInitialPath()
     Returns the initial path for the virtual file system, e.g.
abstract public  ValueInstancegetNewValueInstance(PropertyInstance propInst)
    
abstract public  ListgetOptions()
    
protected  StringgetParentPath(String sFullPath)
    
public static  ListgetPathSegments(String sPath, String sPathSeparator)
     Utility method to return a List object of path segements for a given path
Parameters:
  sPath - Path to split into segments
Parameters:
  sPathSeparator - The separator for the path, e.g.
abstract public  VirtualFilegetPropertyVirtualFile(String sPropPath)
    
public  StringgetRootPathSegment()
     Returns the root path segment for the virtual file system, e.g.
public  URIgetURI()
    
abstract public  ResourceStatusWrappergetVirtualFile(String sFullPath)
    
abstract public  byte[]getVirtualFileContent(String sFullPath)
    
abstract public  VirtualFileSystemViewgetVirtualFileSystemView()
     Access to handler for GUI elements that view the file system, e.g.
protected  booleanisFileChildrenPopulated(VirtualFile vfFile)
    
protected  booleanisFileContentPopulated(VirtualFile vfFile)
     This method allows access to the VirtualFile VirtualFile.isContentPopulated method.
protected  booleanisFileMetadataPopulated(VirtualFile vfFile)
    
abstract public  StatusDatalockVirtualFile(String sFullPath)
    
abstract public  StatusDatamoveVirtualFile(String sFromFullPath, String sToFullPath)
    
abstract public  StatusDataorderVirtualFileChildren(List aPaths, VirtualFile vfDir)
    
abstract protected  voidrefreshChildren(VirtualFile vfFile)
    
abstract public  booleanrejectAllChanges()
     Rejects all the changes to virtual files in the cache.
abstract public  ResourceListStatusWrappersearch(Query query)
    
protected  voidsetFileChildrenPopulated(VirtualFile vfFile, boolean bChildrenPopulated)
    
protected  voidsetFileContentPopulated(VirtualFile vfFile, boolean bContentPopulated)
    
protected  voidsetFileIsVersionable(VirtualFile vfFile, boolean bVersionable)
    
protected  voidsetFileMetadataPopulated(VirtualFile vfFile, boolean bMetadataPopulated)
    
protected  voidsetFileState(VirtualFile vfFile, String sState)
    
protected  voidsetOrderableDirectory(VirtualFile vfFile, boolean bOrderableDirectory)
    
abstract public  StatusDatasynchroniseAllFiles()
    
abstract public  StatusDatasynchroniseFile(VirtualFile vfFile)
    
abstract public  StatusDataunlockVirtualFile(String sFullPath)
    

Field Detail
m_sInitialPath
protected String m_sInitialPath(Code)
The initial path for the underlying file system, e.g. for 'http://localhost/temp/root' this would be '/temp/root/'.



m_sRootPathSegment
protected String m_sRootPathSegment(Code)
The root path segment for the underlying file system, e.g. for 'http://localhost/temp/root' this would be 'root'.




Constructor Detail
AbstractVirtualFileSystem
public AbstractVirtualFileSystem(URI uri)(Code)

Parameters:
  uri - URI to location file system to be connected to



AbstractVirtualFileSystem
public AbstractVirtualFileSystem(URI uri, AuthInfo authInfo)(Code)

Parameters:
  uri - URI to location file system to be connected to
Parameters:
  authInfo - Authentication information



AbstractVirtualFileSystem
public AbstractVirtualFileSystem(URI uri, AbstractAuthenticationStore authStore)(Code)

Parameters:
  uri - URI to location file system to be connected to
Parameters:
  authStore - Authentication Store from which to lookup authentication information




Method Detail
addErrorListener
public void addErrorListener(VirtualFileSystemErrorListener listener)(Code)
Adds an error listener to the virtual file system
Parameters:
  error - listener to be added



addFileAllowedMethod
protected void addFileAllowedMethod(VirtualFile vfFile, String sMethod)(Code)
This method allows access to the VirtualFile VirtualFile.addAllowedMethods(String) method
Parameters:
  vfFile - Virtual file to check
Parameters:
  sMethod - Allowed method to add to the virtual file



addVirtualFile
abstract public ResourceStatusWrapper addVirtualFile(String sPath, VirtualFile vfFile)(Code)
Adds a new virtual file to the virtual file system
Parameters:
  sPath - Full path for the new virtual file file
Parameters:
  vfFile - Virtual file to be added to the virtual file system The virtual file that was added to the virtual file system



clearAllFileProperties
protected void clearAllFileProperties(VirtualFile vfFile)(Code)
This method allows access to the VirtualFile VirtualFile.clearAllProperties method
Parameters:
  vfFile - Virtual file to check



clearFileAllowedMethods
protected void clearFileAllowedMethods(VirtualFile vfFile)(Code)
This method allows access to the VirtualFile VirtualFile.clearAllowedMethods method
Parameters:
  vfFile - Virtual file to check



clearVirtualFileChildren
protected void clearVirtualFileChildren(VirtualFile vfFile)(Code)
Clears the children of a collection
Parameters:
  vfFile - Collection to have its children cleared



copyVirtualFile
abstract public StatusData copyVirtualFile(String sFromFullPath, String sToFullPath)(Code)
Copies a Virtual File specified by the first path to the second path
Parameters:
  sFromFullPath - Path of file to copy
Parameters:
  sToFullPath - Path to copy file to true if the method was successful



createShortcut
abstract public StatusData createShortcut(String sFullPath, String sToFullPath)(Code)
Creates a shortcut to a Virtual File
Parameters:
  sFullPath - Path of shortcut to be created
Parameters:
  sToFullPath - Path of file that the shortcut is to true if the method was successful



createVirtualDirectory
abstract public StatusData createVirtualDirectory(String sFullPath)(Code)
Creates a new Virtual Directory
Parameters:
  sFullPath - Path of directory to be created true if the method was successful



currentUserResourcePath
abstract public String currentUserResourcePath(AuthInfo authInfo)(Code)
Returns a path to the principal's virtual file for the user in the AuthInfo object
Parameters:
  authInfo - Authentication information to use to find the user Path to the principal's virtual file



deleteVirtualFile
abstract public StatusData deleteVirtualFile(String sFullPath)(Code)
Deletes a Virtual File
Parameters:
  sFullPath - Path of file to delete true if the method was successful



discardFileChanges
public void discardFileChanges(String sPath)(Code)
This method allows access to the VirtualFile VirtualFile.discardChanges method
Parameters:
  vfFile - Path of the virtual file to check



exists
abstract public boolean exists(String sFullPath)(Code)
Checks if the given path actually exists within this virtual file system
Parameters:
  sFullPath - Path to check true if the path exists within this virtual file system



fireErrorEvent
protected void fireErrorEvent(String sMessage, String sDetails)(Code)
Creates and fires an error event to all the error listeners that have been added to this virtual file system
Parameters:
  sMessage - Message for the error event
Parameters:
  sDetails - Details of the error event



fullyPopulateFileAllowedMethods
abstract protected void fullyPopulateFileAllowedMethods(VirtualFile vfFile)(Code)
Populates the allowed method list for a given virtual file
Parameters:
  vfFile - Virtual file to have its allowed methods populated



fullyPopulateFileChildren
abstract protected void fullyPopulateFileChildren(VirtualFile vfFile)(Code)
Populates the complete list of children for a collection, use if only the collection itself was fetched and not its children
Parameters:
  vfFile - Collection to have its children fully populated



fullyPopulateFileMetadata
abstract protected void fullyPopulateFileMetadata(VirtualFile vfFile)(Code)
Populates all the metadata for a given virtual file, use if a virtual file was only partially populated for instance on its initial fetch
Parameters:
  vfFile - Virtual file to have its metadata fully populated



getAuthentication
public AuthInfo getAuthentication()(Code)
Returns authentication information for the current user for this file system. Authentication information, null if no authentication information can be found



getChangedVirtualFiles
abstract public List getChangedVirtualFiles()(Code)



getInitialPath
public String getInitialPath()(Code)
Returns the initial path for the virtual file system, e.g. if the uri for the virtual file system was http://localhost/temp/root the returned path would be '/temp/root' Initial path



getNewValueInstance
abstract public ValueInstance getNewValueInstance(PropertyInstance propInst)(Code)
Gets a new ValueInstance , of the correct concrete type, for a given PropertyInstance
Parameters:
  propInst - Property instance to get a new value for New value



getOptions
abstract public List getOptions()(Code)
Returns the methods that are supported by an implementation Comma separated list of methods that are supported by an implementation



getParentPath
protected String getParentPath(String sFullPath)(Code)
Utility method to work out the parent path of passed in path
Parameters:
  sFullPath -



getPathSegments
public static List getPathSegments(String sPath, String sPathSeparator)(Code)
Utility method to return a List object of path segements for a given path
Parameters:
  sPath - Path to split into segments
Parameters:
  sPathSeparator - The separator for the path, e.g. '/' List of path segment Strings



getPropertyVirtualFile
abstract public VirtualFile getPropertyVirtualFile(String sPropPath)(Code)



getRootPathSegment
public String getRootPathSegment()(Code)
Returns the root path segment for the virtual file system, e.g. if the uri for the virtual file system was http://localhost/temp/root the returned path would be 'root'



getURI
public URI getURI()(Code)
Returns the URI of the file system connected to URI of the file system



getVirtualFile
abstract public ResourceStatusWrapper getVirtualFile(String sFullPath)(Code)
This method will return either the Virtual File that was requested by the path or a new blank file initialised to that path
Parameters:
  sFullPath - Full path to the requested file VirtualFile



getVirtualFileContent
abstract public byte[] getVirtualFileContent(String sFullPath)(Code)
Return the content a path in a byte array
Parameters:
  sFullPath - Path to get content for byte array of content for the path



getVirtualFileSystemView
abstract public VirtualFileSystemView getVirtualFileSystemView()(Code)
Access to handler for GUI elements that view the file system, e.g. file icons, display names etc View of file system



isFileChildrenPopulated
protected boolean isFileChildrenPopulated(VirtualFile vfFile)(Code)
This method allows access to the VirtualFile VirtualFile.isChildrenPopulated method
Parameters:
  vfFile - Virtual file to check true if the file's children are fully populated



isFileContentPopulated
protected boolean isFileContentPopulated(VirtualFile vfFile)(Code)
This method allows access to the VirtualFile VirtualFile.isContentPopulated method.
Parameters:
  vfFile - Virtual file to check true if the file's content is fully populated



isFileMetadataPopulated
protected boolean isFileMetadataPopulated(VirtualFile vfFile)(Code)
This method allows access to the VirtualFile VirtualFile.isMetadataPopulated method
Parameters:
  vfFile - Virtual file to check true if the file's metadata is fully populated



lockVirtualFile
abstract public StatusData lockVirtualFile(String sFullPath)(Code)
Locks a Virtual File
Parameters:
  sFullPath - Path of file to lock true if the method was successful



moveVirtualFile
abstract public StatusData moveVirtualFile(String sFromFullPath, String sToFullPath)(Code)
Moves a Virtual File specified by the first path to the second path
Parameters:
  sFromFullPath - Path of file to move
Parameters:
  sToFullPath - Path to move file to true if the method was successful



orderVirtualFileChildren
abstract public StatusData orderVirtualFileChildren(List aPaths, VirtualFile vfDir)(Code)
Sets the order of the children of a collection
Parameters:
  aPaths - Ordered list of paths of the children of a collection
Parameters:
  vfDir - Collection to have its children ordered true if the method was successful



refreshChildren
abstract protected void refreshChildren(VirtualFile vfFile)(Code)
Refreshes the children of a given collection, any children that do not have current changes will be cleared from the cache and property definitions for all children will be updated if required
Parameters:
  vfFile - Collection to have its children refreshed



rejectAllChanges
abstract public boolean rejectAllChanges()(Code)
Rejects all the changes to virtual files in the cache. These virtual files will be removed from the cache to be replaced with the current versions the next time they are requested using the AbstractVirtualFileSystem.getVirtualFile(String) method true if the method was successful



search
abstract public ResourceListStatusWrapper search(Query query)(Code)
Performs a search of the file system using a given query, returning a List of Virtual File objects
Parameters:
  query - Query to use as conditions on the search List of Virtual File objects, empty List is none where found



setFileChildrenPopulated
protected void setFileChildrenPopulated(VirtualFile vfFile, boolean bChildrenPopulated)(Code)
This method allows access to the VirtualFile VirtualFile.setChildrenPopulated(boolean) method
Parameters:
  vfFile - Virtual file to check
Parameters:
  bChildrenPopulated - Set to true to set that the file's children are fully populated



setFileContentPopulated
protected void setFileContentPopulated(VirtualFile vfFile, boolean bContentPopulated)(Code)
This method allows access to the VirtualFile VirtualFile.setContentPopulated(boolean) method
Parameters:
  vfFile - Virtual file to check
Parameters:
  bContentPopulated - Set to true to set that the file's content is fully populated



setFileIsVersionable
protected void setFileIsVersionable(VirtualFile vfFile, boolean bVersionable)(Code)
This method allows access to the VirtualFile VirtualFile.setVersionable(boolean) method
Parameters:
  vfFile - Virtual file to check
Parameters:
  bVersionable - Set to true to set that the file is versionable



setFileMetadataPopulated
protected void setFileMetadataPopulated(VirtualFile vfFile, boolean bMetadataPopulated)(Code)
This method allows access to the VirtualFile VirtualFile.setMetadataPopulated(boolean) method
Parameters:
  vfFile - Virtual file to check
Parameters:
  bMetadataPopulated - Set to true to set that the file's metadata is fully populated



setFileState
protected void setFileState(VirtualFile vfFile, String sState)(Code)
This method allows access to the VirtualFile VirtualFile.setState(String) method
Parameters:
  vfFile - Virtual file to check
Parameters:
  sState - Stage to set on the virtual file



setOrderableDirectory
protected void setOrderableDirectory(VirtualFile vfFile, boolean bOrderableDirectory)(Code)
This method allows access to the VirtualFile VirtualFile.setOrderableDirectory(boolean) method for a collection
Parameters:
  vfFile - Path of the virtual file to check
Parameters:
  bOrderableDirectory - True to set that the collection is orderable



synchroniseAllFiles
abstract public StatusData synchroniseAllFiles()(Code)
Submits all the changed virtual files in the cache back to the virtual file system, the changes might be in the content or the metadata true if the method was successful



synchroniseFile
abstract public StatusData synchroniseFile(VirtualFile vfFile)(Code)
Submits a changed virtual file back to the virtual file system, the changes might be in the content or the metadata
Parameters:
  vfFile - Virtual file to have its changes submitted true if the method was successful



unlockVirtualFile
abstract public StatusData unlockVirtualFile(String sFullPath)(Code)
Unlocks a Virtual File
Parameters:
  sFullPath - Path of file to unlock true if the method was successful



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.