Java Doc for VirtualFile.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.VirtualFile

All known Subclasses:   org.openharmonise.vfs.VersionedVirtualFile,
VirtualFile
public class VirtualFile (Code)
A representation of a file in a Virtual File System.
author:
   Matthew Large
version:
   $Revision: 1.1 $


Field Summary
public static  intEVENT_ADDITION
    
public static  intEVENT_NOTHING
    
public static  intEVENT_REMOVAL
    
public static  StringMETHOD_ADD
     Add method identifier for allowed methods.
public static  StringMETHOD_CHECKIN
     Checkin method identifier for allowed methods.
public static  StringMETHOD_CHECKOUT
     Checkout method identifier for allowed methods.
public static  StringMETHOD_COPY
     Copy method identifier for allowed methods.
public static  StringMETHOD_DELETE
     Delete method identifier for allowed methods.
public static  StringMETHOD_GET
     Get method identifier for allowed methods.
public static  StringMETHOD_LOCK
     Lock method identifier for allowed methods.
public static  StringMETHOD_MKDIR
     Create collection method identifier for allowed methods.
public static  StringMETHOD_MOVE
     Move method identifier for allowed methods.
public static  StringMETHOD_ORDER
     Order method identifier for allowed methods.
public static  StringMETHOD_REJECT
     Reject method identifier for allowed methods.
public static  StringMETHOD_RENAME
     Checkout method identifier for allowed methods.
public static  StringMETHOD_SEARCH
     Search method identifier for allowed methods.
public static  StringMETHOD_SET_CHILD_ORDER
     Set children order method identifier for allowed methods.
public static  StringMETHOD_SHORTCUT
     Create shortcut method identifier for allowed methods.
public static  StringMETHOD_SYNC
     Submit method identifier for allowed methods.
public static  StringMETHOD_TAG
     Tag method identifier for allowed methods.
public static  StringMETHOD_UNLOCK
     Unlock method identifier for allowed methods.
public static  StringSTATE_HISTORICAL
     The state of a historical virtual file.
public static  StringSTATE_LIVE
     The state of a live virtual file.
public static  StringSTATE_PENDING
     The state of a pending virtual file.
protected  AbstractVirtualFileSystemm_vfs
     The virtual file system that this virtual file is attached to.

Constructor Summary
public  VirtualFile(String sFullPath)
     Constructs a Virtual File.
public  VirtualFile()
     Constructs a Virtual File.

Method Summary
protected  voidaddAllowedMethods(String sMethod)
     Adds an allowed method to the list for this virtual file.
public  voidaddChild(String sURI)
     Adds a path to this virtual file's children list.
public  voidaddProperty(PropertyInstance prop)
     Adds a PropertyInstance to the metadata for this vitual file.
public  voidaddVirtualFileListener(VirtualFileListener listener)
     Adds a VirtualFileListener .
public  booleancanLock()
     Checks to see if the logged in user will be able to lock this VirtualFile.
public  booleancanUnlock()
     Checks to see if the logged in user will be able to unlock this VirtualFile.
protected  voidclearAllProperties()
     Clears all the metadata for this virtual file.
protected  voidclearAllowedMethods()
     Clears the list of allowed methods for this virtual file.
protected  voidclearChildren()
     Clears the list of paths of children of this collection.
public  voidclearFile()
     Clears all of the information about this virtual file and resets all of the populated booleans to false.
public  StatusDatacopy(String sNewPath, String sNewFilename)
     Copies the file to a new path with a new filename.
public  StatusDatacopy(String sNewPath)
     Copies the file to a new path, giving the copy the same name as the current version of the file.
public  StatusDatacreateShortcut(String sShortcutName, String sFromFullPath)
     Creates a new shortcut to a specified file with a specified name within the current directory, only works on Virtual Files that are directories.
public  StatusDatadelete()
     Deletes the file.
protected  voiddiscardChanges()
     Discards any changes that may have been made to this virtual file since it was populate.
public  booleanexists()
     Checks if this virtual file exists within the virtual file system that this virtual file belongs to.
public  voidfireVirtualFileEvent(String sEventType)
     Creates and fires a VirtualFileEvent to all the listeners.
public  voidfireVirtualFileEvent(String sEventType, int nEventAction, String sPath)
     Creates and fires a VirtualFileEvent to all the listeners.
public  ListgetAllowedMethods()
     Provides a list of the methods which might work for this VirtualFile.
public  ListgetChildren()
     Returns a list of the paths that are children of this virtual file.
public  byte[]getContent()
     Returns the contents for this virtual file.
public  StringgetFileName()
     Returns the name of this virtual file.
public  StringgetFilePath()
     Returns the path to the parent collection of this virtual file.
public  StringgetFullPath()
     Gets the full path of the file.
public  StringgetLockOwner()
     Returns the owner of the lock on the file, if there is one.
public  StringgetLockToken()
     Returns the lock token for the lock on the file, if there is one.
public  ListgetProperties()
     Returns a list of all the PropertyInstance objects in this virtual file's metadata.
public  PropertyInstancegetProperty(String sNamespaceURI, String sName)
     Returns a PropertyInstance from the metadata for this virtual file which matches the given namespace and name.
public  StringgetState()
     Returns the current state of this virtual file.
public  AbstractVirtualFileSystemgetVFS()
     Returns the AbstractVirtualFileSystem that this virtual file belongs to.
public  booleanhasChild(String sURI)
     Checks if this virtual file has a path as one of its children.
public  booleanhasVirtualFileListeners()
     Checks if the file has any listeners.
public  booleanisChanged()
     Checks if the in memory file has changed in anyway since it either came from the Virtual File System or since it was last synchronized.
protected  booleanisChildrenPopulated()
     Checks if the list of children for this virtual file has been populated.
public  booleanisContentChanged()
     Checks if the content for this virtual file has changes since it was last populated.
protected  booleanisContentPopulated()
     Checks if the content for this virtual file has been populated.
public  booleanisDirectory()
     Checks if this virtual file is a collection.
public  booleanisFullyPopulated()
     Checks if the file is fully populated, to allow for lazy partial instantiation.
public  booleanisLocked()
     Checks if this virtual file is locked.
public  booleanisMetadataChanged()
     Checks if the metadata for this virtual file has changed since it was last populated.
protected  booleanisMetadataPopulated()
     Checks if the metadata for this virtual file has been populated.
public  booleanisOrderableDirectory()
     Checks if this collection is able to have the order of its children set.
public  booleanisPopulateLocked()
     Checks if this virtual file's lock information has been populated.
public  booleanisVersionable()
     Checks if this VirtualFile is under version control.
public  booleanisVirtualDirectory()
    
public  StatusDatalock()
     Locks the file to the logged in user.
public  StatusDatamkDir(String sDirname)
     Creates a new directory with the current one.
public  StatusDatamove(String sNewPath, String sNewFilename)
     Moves the file to a new path with a new filename.
public  StatusDatamove(String sNewPath)
     Moves the file to a new path.
public  voidrefreshChildren()
     Refreshes the list of children for this virtual file.
public  voidrefreshChildren(int nAction, String sChildPath)
     Refreshes the list of children for this virtual file.
public  voidremoveChild(String sURI)
     Removes a path from this virtual file's children list.
public  voidremoveProperty(String sNamespaceURI, String sName)
     Removes a PropertyInstance from the metadata for this virtual file.
public  voidremoveVirtualFileListener(VirtualFileListener listener)
     Removes a VirtualFileListener .
public  StatusDatarename(String sNewFilename)
     Renames the virtual file.
public  StatusDatasetChildrenOrder(List children)
     Sets the order of the children of this virtual file.
protected  voidsetChildrenPopulated(boolean bChildrenPopulated)
     Sets that the list of children for this virtual file has been populated.
public  voidsetContent(byte[] bs)
     Sets the content for this virtual file.
protected  voidsetContentPopulated(boolean bContentPopulated)
     Sets that the content for this virtual file has been populated.
public  voidsetFileName(String string)
     Sets the name of this virtual file.
public  voidsetFilePath(String string)
     Sets the path to the parent collection for this virtual file.
public  voidsetFullPath(String sFullPath)
     Sets the full path of this virtual file.
public  voidsetIsDirectory(boolean bIsDirectory)
     Sets if this virtual file is a collection.
public  voidsetIsVirtualDirectory(boolean bIsVirtual)
    
public  voidsetLockOwner(String sLockOwner)
     Sets the owner of the lock on the file.
public  voidsetLockToken(String sLockToken)
     Sets the lock token for the lock on the file.
protected  voidsetMetadataPopulated(boolean bMetadataPopulated)
     Sets that the metadata for this virtual file has been populated.
protected  voidsetOrderableDirectory(boolean b)
     Sets that the order of the children of this collection can be set.
public  voidsetPopulateLocked(boolean bPopulateLocked)
     Sets the lock populated information for this virtual file.
protected  voidsetState(String sState)
     Sets the current state of this virtual file.
public  voidsetVFS(AbstractVirtualFileSystem vfs)
     Gives the file a hook to the file system it belongs to.
protected  voidsetVersionable(boolean bVersionable)
     Sets if this VirtualFile is under version control.
public  StatusDatasync()
     Submits any changes that have been made to this virtual file back to the underlying file system.
public  StatusDataunlock()
     Unlocks the file.

Field Detail
EVENT_ADDITION
public static int EVENT_ADDITION(Code)



EVENT_NOTHING
public static int EVENT_NOTHING(Code)



EVENT_REMOVAL
public static int EVENT_REMOVAL(Code)



METHOD_ADD
public static String METHOD_ADD(Code)
Add method identifier for allowed methods.



METHOD_CHECKIN
public static String METHOD_CHECKIN(Code)
Checkin method identifier for allowed methods.



METHOD_CHECKOUT
public static String METHOD_CHECKOUT(Code)
Checkout method identifier for allowed methods.



METHOD_COPY
public static String METHOD_COPY(Code)
Copy method identifier for allowed methods.



METHOD_DELETE
public static String METHOD_DELETE(Code)
Delete method identifier for allowed methods.



METHOD_GET
public static String METHOD_GET(Code)
Get method identifier for allowed methods.



METHOD_LOCK
public static String METHOD_LOCK(Code)
Lock method identifier for allowed methods.



METHOD_MKDIR
public static String METHOD_MKDIR(Code)
Create collection method identifier for allowed methods.



METHOD_MOVE
public static String METHOD_MOVE(Code)
Move method identifier for allowed methods.



METHOD_ORDER
public static String METHOD_ORDER(Code)
Order method identifier for allowed methods.



METHOD_REJECT
public static String METHOD_REJECT(Code)
Reject method identifier for allowed methods.



METHOD_RENAME
public static String METHOD_RENAME(Code)
Checkout method identifier for allowed methods.



METHOD_SEARCH
public static String METHOD_SEARCH(Code)
Search method identifier for allowed methods.



METHOD_SET_CHILD_ORDER
public static String METHOD_SET_CHILD_ORDER(Code)
Set children order method identifier for allowed methods.



METHOD_SHORTCUT
public static String METHOD_SHORTCUT(Code)
Create shortcut method identifier for allowed methods.



METHOD_SYNC
public static String METHOD_SYNC(Code)
Submit method identifier for allowed methods.



METHOD_TAG
public static String METHOD_TAG(Code)
Tag method identifier for allowed methods.



METHOD_UNLOCK
public static String METHOD_UNLOCK(Code)
Unlock method identifier for allowed methods.



STATE_HISTORICAL
public static String STATE_HISTORICAL(Code)
The state of a historical virtual file.



STATE_LIVE
public static String STATE_LIVE(Code)
The state of a live virtual file.



STATE_PENDING
public static String STATE_PENDING(Code)
The state of a pending virtual file.



m_vfs
protected AbstractVirtualFileSystem m_vfs(Code)
The virtual file system that this virtual file is attached to.




Constructor Detail
VirtualFile
public VirtualFile(String sFullPath)(Code)
Constructs a Virtual File.
Parameters:
  sFullPath - FullPath of the file



VirtualFile
public VirtualFile()(Code)
Constructs a Virtual File.




Method Detail
addAllowedMethods
protected void addAllowedMethods(String sMethod)(Code)
Adds an allowed method to the list for this virtual file.
Parameters:
  sMethod - Method type to add



addChild
public void addChild(String sURI)(Code)
Adds a path to this virtual file's children list.
Parameters:
  sURI - Path to add to this virtual file's children list



addProperty
public void addProperty(PropertyInstance prop)(Code)
Adds a PropertyInstance to the metadata for this vitual file.
Parameters:
  prop - PropertyInstance to add to this virtual file



addVirtualFileListener
public void addVirtualFileListener(VirtualFileListener listener)(Code)
Adds a VirtualFileListener .
Parameters:
  listener - Listener to add



canLock
public boolean canLock()(Code)
Checks to see if the logged in user will be able to lock this VirtualFile. Will return false if the current user does not have permission, if the VirtualFileSystem will not support locking for this VirtualFile or if the VirtualFile is already locked by another user. true if the current user will be able to lock this VirtualFile



canUnlock
public boolean canUnlock()(Code)
Checks to see if the logged in user will be able to unlock this VirtualFile. Will return false if the current user does not have permission, if the VirtualFileSystem will not support unlocking for this VirtualFile or if the VirtualFile is locked by another user. true if the current user will be able to unlock this VirtualFile



clearAllProperties
protected void clearAllProperties()(Code)
Clears all the metadata for this virtual file.



clearAllowedMethods
protected void clearAllowedMethods()(Code)
Clears the list of allowed methods for this virtual file.



clearChildren
protected void clearChildren()(Code)
Clears the list of paths of children of this collection.



clearFile
public void clearFile()(Code)
Clears all of the information about this virtual file and resets all of the populated booleans to false.



copy
public StatusData copy(String sNewPath, String sNewFilename)(Code)
Copies the file to a new path with a new filename.
Parameters:
  sNewPath - Path to copy to
Parameters:
  sNewFilename - Filename to give the new copy true if the method was successful



copy
public StatusData copy(String sNewPath)(Code)
Copies the file to a new path, giving the copy the same name as the current version of the file.
Parameters:
  sNewPath - Path to copy to true if the method was successful



createShortcut
public StatusData createShortcut(String sShortcutName, String sFromFullPath)(Code)
Creates a new shortcut to a specified file with a specified name within the current directory, only works on Virtual Files that are directories.
Parameters:
  sShortcutName - Name to give to new shortcut
Parameters:
  sFromFullPath - Path that the new shortcut points to true if the methods was successful



delete
public StatusData delete()(Code)
Deletes the file. true if the methods was successful



discardChanges
protected void discardChanges()(Code)
Discards any changes that may have been made to this virtual file since it was populate. The any information subsequently requested will be repopulated from the underlying file system.



exists
public boolean exists()(Code)
Checks if this virtual file exists within the virtual file system that this virtual file belongs to. true if this virtual file exists



fireVirtualFileEvent
public void fireVirtualFileEvent(String sEventType)(Code)
Creates and fires a VirtualFileEvent to all the listeners.
Parameters:
  sEventType - Event type



fireVirtualFileEvent
public void fireVirtualFileEvent(String sEventType, int nEventAction, String sPath)(Code)
Creates and fires a VirtualFileEvent to all the listeners.
Parameters:
  sEventType - Event type



getAllowedMethods
public List getAllowedMethods()(Code)
Provides a list of the methods which might work for this VirtualFile. This list will be dependant on the VirtualFileSystem implementation, the server and the currently logged in user's permissions. List of Strings of method names supported for this user by this VirtualFile.



getChildren
public List getChildren()(Code)
Returns a list of the paths that are children of this virtual file. List of virtual file paths



getContent
public byte[] getContent()(Code)
Returns the contents for this virtual file. Content



getFileName
public String getFileName()(Code)
Returns the name of this virtual file. Name of this virtual file



getFilePath
public String getFilePath()(Code)
Returns the path to the parent collection of this virtual file. Path to parent collection



getFullPath
public String getFullPath()(Code)
Gets the full path of the file. Fullpath of the file



getLockOwner
public String getLockOwner()(Code)
Returns the owner of the lock on the file, if there is one. Username of the lock owner, null if there is no lock



getLockToken
public String getLockToken()(Code)
Returns the lock token for the lock on the file, if there is one. Lock token of the lock, null if there is no lock



getProperties
public List getProperties()(Code)
Returns a list of all the PropertyInstance objects in this virtual file's metadata. List of PropertyInstance objects



getProperty
public PropertyInstance getProperty(String sNamespaceURI, String sName)(Code)
Returns a PropertyInstance from the metadata for this virtual file which matches the given namespace and name.
Parameters:
  sNamespaceURI - Namespace of the PropertyInstance to be returned
Parameters:
  sName - Name of the PropertyInstance to be returned null if no PropertyInstance was found in this virtual file's metadata matching the given namespace and name



getState
public String getState()(Code)
Returns the current state of this virtual file. Current state



getVFS
public AbstractVirtualFileSystem getVFS()(Code)
Returns the AbstractVirtualFileSystem that this virtual file belongs to. Virtual file system that this virtual file belongs to



hasChild
public boolean hasChild(String sURI)(Code)
Checks if this virtual file has a path as one of its children.
Parameters:
  sURI - Path to check true if the given path is a child of this virtual file



hasVirtualFileListeners
public boolean hasVirtualFileListeners()(Code)
Checks if the file has any listeners. true if the file has any listeners



isChanged
public boolean isChanged()(Code)
Checks if the in memory file has changed in anyway since it either came from the Virtual File System or since it was last synchronized. true if the file has changed



isChildrenPopulated
protected boolean isChildrenPopulated()(Code)
Checks if the list of children for this virtual file has been populated. true if the list of children has been populated



isContentChanged
public boolean isContentChanged()(Code)
Checks if the content for this virtual file has changes since it was last populated. true if the content has changed



isContentPopulated
protected boolean isContentPopulated()(Code)
Checks if the content for this virtual file has been populated. true if the content has been populated



isDirectory
public boolean isDirectory()(Code)
Checks if this virtual file is a collection. true if this virtual file is a collection



isFullyPopulated
public boolean isFullyPopulated()(Code)
Checks if the file is fully populated, to allow for lazy partial instantiation. true if the file is fully populated



isLocked
public boolean isLocked()(Code)
Checks if this virtual file is locked. True if the file is locked



isMetadataChanged
public boolean isMetadataChanged()(Code)
Checks if the metadata for this virtual file has changed since it was last populated. true if the metadata has changed



isMetadataPopulated
protected boolean isMetadataPopulated()(Code)
Checks if the metadata for this virtual file has been populated. true if the metadata has been populated



isOrderableDirectory
public boolean isOrderableDirectory()(Code)
Checks if this collection is able to have the order of its children set. true if the order of children can be set



isPopulateLocked
public boolean isPopulateLocked()(Code)
Checks if this virtual file's lock information has been populated. true if this virtual file's lock information has been populated



isVersionable
public boolean isVersionable()(Code)
Checks if this VirtualFile is under version control. true if VirtualFile is under version control



isVirtualDirectory
public boolean isVirtualDirectory()(Code)



lock
public StatusData lock()(Code)
Locks the file to the logged in user. true if the methods was successful



mkDir
public StatusData mkDir(String sDirname)(Code)
Creates a new directory with the current one. Only works on Virtual Files that are directories.
Parameters:
  sDirname - Name to give to new directory true if the methods was successful



move
public StatusData move(String sNewPath, String sNewFilename)(Code)
Moves the file to a new path with a new filename.
Parameters:
  sNewPath - Path to move to
Parameters:
  sNewFilename - Filename to give the file true if the methods was successful



move
public StatusData move(String sNewPath)(Code)
Moves the file to a new path.
Parameters:
  sNewPath - Path to move to true if the methods was successful



refreshChildren
public void refreshChildren()(Code)
Refreshes the list of children for this virtual file.



refreshChildren
public void refreshChildren(int nAction, String sChildPath)(Code)
Refreshes the list of children for this virtual file.



removeChild
public void removeChild(String sURI)(Code)
Removes a path from this virtual file's children list.
Parameters:
  sURI - Path to remove from this virtual file's children list



removeProperty
public void removeProperty(String sNamespaceURI, String sName)(Code)
Removes a PropertyInstance from the metadata for this virtual file.
Parameters:
  sNamespaceURI - Namespace of the PropertyInstance to be removed
Parameters:
  sName - Name of the PropertyInstance to be removed



removeVirtualFileListener
public void removeVirtualFileListener(VirtualFileListener listener)(Code)
Removes a VirtualFileListener .
Parameters:
  listener - Listener to remove



rename
public StatusData rename(String sNewFilename)(Code)
Renames the virtual file.
Parameters:
  sNewFilename - New name true if the methods was successful



setChildrenOrder
public StatusData setChildrenOrder(List children)(Code)
Sets the order of the children of this virtual file. This method will fail if this is not a collection which is orderable or if the contents of the suplied list of paths does not match the list of child paths for this collection.
Parameters:
  children - List of paths in the order to be set true if the method was successful



setChildrenPopulated
protected void setChildrenPopulated(boolean bChildrenPopulated)(Code)
Sets that the list of children for this virtual file has been populated.
Parameters:
  bChildrenPopulated - Set to true to set that the list of children has been populated



setContent
public void setContent(byte[] bs)(Code)
Sets the content for this virtual file.
Parameters:
  bs - Content



setContentPopulated
protected void setContentPopulated(boolean bContentPopulated)(Code)
Sets that the content for this virtual file has been populated.
Parameters:
  bContentPopulated - Set to true to set that the content has been populated



setFileName
public void setFileName(String string)(Code)
Sets the name of this virtual file.
Parameters:
  string - Name for this virtual file



setFilePath
public void setFilePath(String string)(Code)
Sets the path to the parent collection for this virtual file.
Parameters:
  string - Path to parent collection



setFullPath
public void setFullPath(String sFullPath)(Code)
Sets the full path of this virtual file.
Parameters:
  sFullPath - The full path for this virtual file



setIsDirectory
public void setIsDirectory(boolean bIsDirectory)(Code)
Sets if this virtual file is a collection.
Parameters:
  bIsDirectory - True to set that this virtual file is a collection



setIsVirtualDirectory
public void setIsVirtualDirectory(boolean bIsVirtual)(Code)

Parameters:
  b -



setLockOwner
public void setLockOwner(String sLockOwner)(Code)
Sets the owner of the lock on the file. This should be the path to the virtual file for the principal representing the user who owns the lock.
Parameters:
  sLockOwner - Username of the lock owner



setLockToken
public void setLockToken(String sLockToken)(Code)
Sets the lock token for the lock on the file.
Parameters:
  sLockToken - Lock token for the lock on the file



setMetadataPopulated
protected void setMetadataPopulated(boolean bMetadataPopulated)(Code)
Sets that the metadata for this virtual file has been populated.
Parameters:
  bMetadataPopulated - Set to true to set that the metadata has been populated



setOrderableDirectory
protected void setOrderableDirectory(boolean b)(Code)
Sets that the order of the children of this collection can be set.
Parameters:
  b - true if the order of the children can be set



setPopulateLocked
public void setPopulateLocked(boolean bPopulateLocked)(Code)
Sets the lock populated information for this virtual file.
Parameters:
  bPopulateLocked - Set to true to set that this virtual file's lock information has been populated.



setState
protected void setState(String sState)(Code)
Sets the current state of this virtual file.
Parameters:
  sState - State to set



setVFS
public void setVFS(AbstractVirtualFileSystem vfs)(Code)
Gives the file a hook to the file system it belongs to.
Parameters:
  vfs - Virtual file system that the file belongs to



setVersionable
protected void setVersionable(boolean bVersionable)(Code)
Sets if this VirtualFile is under version control. true to set that this VirtualFile is under version control



sync
public StatusData sync()(Code)
Submits any changes that have been made to this virtual file back to the underlying file system. true if the method was successful



unlock
public StatusData unlock()(Code)
Unlocks the file. true if the methods 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.