Java Doc for VersionedVirtualFile.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
      org.openharmonise.vfs.VersionedVirtualFile

VersionedVirtualFile
public class VersionedVirtualFile extends VirtualFile (Code)
A versionable virtual file, to go with a versionable virtual file System.
author:
   Matthew Large
version:
   $Revision: 1.1 $



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

Method Summary
protected  voidaddHistoricalVersion(String sPath)
     Adds a path to a historical version.
public  StatusDatacheckin()
     Checks this VirtualFile back in.
public  StatusDatacheckout()
     Creates a pending VirtualFile associated to this VirtualFile.
public  StatusDatadelete()
     Deletes this virtual file.
public  ListgetHistoricalVersions()
     Gets the paths of the historical VirtualFiles associated with this one. Will return an empty List if this is not a versionable, live in VirtualFile. List of virtual files that are the historical versions of this one.
public  StringgetLiveVersionPath()
     Returns that full path to the live version of this virtual file.
public  StringgetLogicalPath()
     Returns the logical path of this virtual file.
public  StringgetPendingVersionPath()
     Gets the path of the pending VirtualFile associated with this one.
public  booleanhasPendingVersion()
     Checks to see if this has a pending version associated to it.
public  booleanisHistoryPopulated()
     Checks if the list of paths for historical versions of this virtual file has been populated.
public  StatusDatareactivate()
     Makes this VirtualFile the current pending VirtualFile for its associated live VirtualFile.
protected  voidremoveHistoricalVersion(String sPath)
     Removes a path to a historical version.
protected  voidsetHistoryPopulated(boolean bHistoryPopulated)
     Sets that the list of historical versions of this virtual file has been populated.
protected  voidsetLiveVersionPath(String sPath)
     Sets the path to the live version of this virtual file.
protected  voidsetPendingVersionPath(String sPath)
     Sets the path to the pending version of this virtual file.
public  StatusDatatag(String sTag)
     Tags the current version of the file.
public  StatusDatauncheckout()
     Unchecks out this VirtualFile, removing it from the system.


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



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




Method Detail
addHistoricalVersion
protected void addHistoricalVersion(String sPath)(Code)
Adds a path to a historical version.
Parameters:
  sPath - Path to historical version



checkin
public StatusData checkin()(Code)
Checks this VirtualFile back in. Making it the current live VirtualFile. Will return false if this is not a pending VirtualFile. true if the method was successful



checkout
public StatusData checkout()(Code)
Creates a pending VirtualFile associated to this VirtualFile. Will return false if this is not a versionable, live in VirtualFile or if there is already a pending version. true if the method was successful



delete
public StatusData delete()(Code)
Deletes this virtual file. true if the method was successful



getHistoricalVersions
public List getHistoricalVersions()(Code)
Gets the paths of the historical VirtualFiles associated with this one. Will return an empty List if this is not a versionable, live in VirtualFile. List of virtual files that are the historical versions of this one. List will be empty if there are none



getLiveVersionPath
public String getLiveVersionPath()(Code)
Returns that full path to the live version of this virtual file. Full path to live version



getLogicalPath
public String getLogicalPath()(Code)
Returns the logical path of this virtual file. If the virtual file is new or a live version then its own path will be returned. If the virtual file is a pending or historical version the path of its live version will be returned. Full logical path



getPendingVersionPath
public String getPendingVersionPath()(Code)
Gets the path of the pending VirtualFile associated with this one. Will return null if this is not a versionable, live in VirtualFile. Checked out VirtualFile, null if there isn't one



hasPendingVersion
public boolean hasPendingVersion()(Code)
Checks to see if this has a pending version associated to it. Will return false if this is not a versionable, live VirtualFile. true if this has a pending version associated to it



isHistoryPopulated
public boolean isHistoryPopulated()(Code)
Checks if the list of paths for historical versions of this virtual file has been populated. true if the list of historical paths is populated



reactivate
public StatusData reactivate()(Code)
Makes this VirtualFile the current pending VirtualFile for its associated live VirtualFile. Will return false if this is not a historical VirtualFile. true if the method was successful



removeHistoricalVersion
protected void removeHistoricalVersion(String sPath)(Code)
Removes a path to a historical version.
Parameters:
  sPath - Path to historical version



setHistoryPopulated
protected void setHistoryPopulated(boolean bHistoryPopulated)(Code)
Sets that the list of historical versions of this virtual file has been populated.
Parameters:
  bHistoryPopulated - true to set that the list of historical versions has been populated



setLiveVersionPath
protected void setLiveVersionPath(String sPath)(Code)
Sets the path to the live version of this virtual file.
Parameters:
  sPath - Full path to the live version



setPendingVersionPath
protected void setPendingVersionPath(String sPath)(Code)
Sets the path to the pending version of this virtual file.
Parameters:
  sPath - Full path to the pending version



tag
public StatusData tag(String sTag)(Code)
Tags the current version of the file.
Parameters:
  sTag - Tag to apply to the file



uncheckout
public StatusData uncheckout()(Code)
Unchecks out this VirtualFile, removing it from the system. Will return false if this is not a pending VirtualFile. true if the method was successful



Fields inherited from org.openharmonise.vfs.VirtualFile
public static int EVENT_ADDITION(Code)(Java Doc)
public static int EVENT_NOTHING(Code)(Java Doc)
public static int EVENT_REMOVAL(Code)(Java Doc)
public static String METHOD_ADD(Code)(Java Doc)
public static String METHOD_CHECKIN(Code)(Java Doc)
public static String METHOD_CHECKOUT(Code)(Java Doc)
public static String METHOD_COPY(Code)(Java Doc)
public static String METHOD_DELETE(Code)(Java Doc)
public static String METHOD_GET(Code)(Java Doc)
public static String METHOD_LOCK(Code)(Java Doc)
public static String METHOD_MKDIR(Code)(Java Doc)
public static String METHOD_MOVE(Code)(Java Doc)
public static String METHOD_ORDER(Code)(Java Doc)
public static String METHOD_REJECT(Code)(Java Doc)
public static String METHOD_RENAME(Code)(Java Doc)
public static String METHOD_SEARCH(Code)(Java Doc)
public static String METHOD_SET_CHILD_ORDER(Code)(Java Doc)
public static String METHOD_SHORTCUT(Code)(Java Doc)
public static String METHOD_SYNC(Code)(Java Doc)
public static String METHOD_TAG(Code)(Java Doc)
public static String METHOD_UNLOCK(Code)(Java Doc)
public static String STATE_HISTORICAL(Code)(Java Doc)
public static String STATE_LIVE(Code)(Java Doc)
public static String STATE_PENDING(Code)(Java Doc)
protected AbstractVirtualFileSystem m_vfs(Code)(Java Doc)

Methods inherited from org.openharmonise.vfs.VirtualFile
protected void addAllowedMethods(String sMethod)(Code)(Java Doc)
public void addChild(String sURI)(Code)(Java Doc)
public void addProperty(PropertyInstance prop)(Code)(Java Doc)
public void addVirtualFileListener(VirtualFileListener listener)(Code)(Java Doc)
public boolean canLock()(Code)(Java Doc)
public boolean canUnlock()(Code)(Java Doc)
protected void clearAllProperties()(Code)(Java Doc)
protected void clearAllowedMethods()(Code)(Java Doc)
protected void clearChildren()(Code)(Java Doc)
public void clearFile()(Code)(Java Doc)
public StatusData copy(String sNewPath, String sNewFilename)(Code)(Java Doc)
public StatusData copy(String sNewPath)(Code)(Java Doc)
public StatusData createShortcut(String sShortcutName, String sFromFullPath)(Code)(Java Doc)
public StatusData delete()(Code)(Java Doc)
protected void discardChanges()(Code)(Java Doc)
public boolean exists()(Code)(Java Doc)
public void fireVirtualFileEvent(String sEventType)(Code)(Java Doc)
public void fireVirtualFileEvent(String sEventType, int nEventAction, String sPath)(Code)(Java Doc)
public List getAllowedMethods()(Code)(Java Doc)
public List getChildren()(Code)(Java Doc)
public byte[] getContent()(Code)(Java Doc)
public String getFileName()(Code)(Java Doc)
public String getFilePath()(Code)(Java Doc)
public String getFullPath()(Code)(Java Doc)
public String getLockOwner()(Code)(Java Doc)
public String getLockToken()(Code)(Java Doc)
public List getProperties()(Code)(Java Doc)
public PropertyInstance getProperty(String sNamespaceURI, String sName)(Code)(Java Doc)
public String getState()(Code)(Java Doc)
public AbstractVirtualFileSystem getVFS()(Code)(Java Doc)
public boolean hasChild(String sURI)(Code)(Java Doc)
public boolean hasVirtualFileListeners()(Code)(Java Doc)
public boolean isChanged()(Code)(Java Doc)
protected boolean isChildrenPopulated()(Code)(Java Doc)
public boolean isContentChanged()(Code)(Java Doc)
protected boolean isContentPopulated()(Code)(Java Doc)
public boolean isDirectory()(Code)(Java Doc)
public boolean isFullyPopulated()(Code)(Java Doc)
public boolean isLocked()(Code)(Java Doc)
public boolean isMetadataChanged()(Code)(Java Doc)
protected boolean isMetadataPopulated()(Code)(Java Doc)
public boolean isOrderableDirectory()(Code)(Java Doc)
public boolean isPopulateLocked()(Code)(Java Doc)
public boolean isVersionable()(Code)(Java Doc)
public boolean isVirtualDirectory()(Code)(Java Doc)
public StatusData lock()(Code)(Java Doc)
public StatusData mkDir(String sDirname)(Code)(Java Doc)
public StatusData move(String sNewPath, String sNewFilename)(Code)(Java Doc)
public StatusData move(String sNewPath)(Code)(Java Doc)
public void refreshChildren()(Code)(Java Doc)
public void refreshChildren(int nAction, String sChildPath)(Code)(Java Doc)
public void removeChild(String sURI)(Code)(Java Doc)
public void removeProperty(String sNamespaceURI, String sName)(Code)(Java Doc)
public void removeVirtualFileListener(VirtualFileListener listener)(Code)(Java Doc)
public StatusData rename(String sNewFilename)(Code)(Java Doc)
public StatusData setChildrenOrder(List children)(Code)(Java Doc)
protected void setChildrenPopulated(boolean bChildrenPopulated)(Code)(Java Doc)
public void setContent(byte[] bs)(Code)(Java Doc)
protected void setContentPopulated(boolean bContentPopulated)(Code)(Java Doc)
public void setFileName(String string)(Code)(Java Doc)
public void setFilePath(String string)(Code)(Java Doc)
public void setFullPath(String sFullPath)(Code)(Java Doc)
public void setIsDirectory(boolean bIsDirectory)(Code)(Java Doc)
public void setIsVirtualDirectory(boolean bIsVirtual)(Code)(Java Doc)
public void setLockOwner(String sLockOwner)(Code)(Java Doc)
public void setLockToken(String sLockToken)(Code)(Java Doc)
protected void setMetadataPopulated(boolean bMetadataPopulated)(Code)(Java Doc)
protected void setOrderableDirectory(boolean b)(Code)(Java Doc)
public void setPopulateLocked(boolean bPopulateLocked)(Code)(Java Doc)
protected void setState(String sState)(Code)(Java Doc)
public void setVFS(AbstractVirtualFileSystem vfs)(Code)(Java Doc)
protected void setVersionable(boolean bVersionable)(Code)(Java Doc)
public StatusData sync()(Code)(Java Doc)
public StatusData unlock()(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.