| java.lang.Object org.openharmonise.vfs.AbstractVirtualFileSystem org.openharmonise.vfs.AbstractVersioningVFS org.openharmonise.webdav.client.WebDAVFileSystem
WebDAVFileSystem | public class WebDAVFileSystem extends AbstractVersioningVFS implements AuthorizationHandler(Code) | | WebDAV implementation of the VirtualFileSystem.
author: Matthew Large version: $Revision: 1.4 $ |
Method Summary | |
public ResourceStatusWrapper | addVirtualFile(String sPath, VirtualFile content) | public void | changeLoginDetails(String sUsername, String sPassword) Changes the authentication information being used by this virtual
file system. | public boolean | checkLoginDetails(String sPath, String sUsername, String sPassword) Attempts to use a username and password to check if they are
valid. | public StatusData | checkinVirtualFile(String sFullPath) | public StatusData | checkoutVirtualFile(String sFullPath) | public StatusData | copyVirtualFile(String sFromPath, String sToPath) | public StatusData | createShortcut(String sPath, String sToPath) | public StatusData | createVirtualDirectory(String sPath) | public String | currentUserResourcePath(AuthInfo authInfo) | public StatusData | deleteVirtualFile(String sPath) | public boolean | exists(String sFullPath) | public AuthorizationInfo | fixupAuthInfo(AuthorizationInfo arg0, RoRequest arg1, AuthorizationInfo arg2, RoResponse arg3) | protected void | fullyPopulateFileAllowedMethods(VirtualFile vfFile) | protected void | fullyPopulateFileChildren(VirtualFile vfFile) | protected void | fullyPopulateFileHistory(VersionedVirtualFile vfFile) | protected void | fullyPopulateFileMetadata(VirtualFile vfFile) | public String | getAuthHeaderValue() Creates a HTTP authentication header value from the authentication
information for this virtual file system. | public AuthorizationInfo | getAuthorization(AuthorizationInfo arg0, RoRequest arg1, RoResponse arg2) | public List | getChangedVirtualFiles() | public ValueInstance | getNewValueInstance(PropertyInstance propInst) | public List | getOptions() | public VirtualFile | getPropertyVirtualFile(String sPropPath) | public ResourceStatusWrapper | getVirtualFile(String sPath) | public ResourceStatusWrapper | getVirtualFile(String sPath, List aProps) This method will return either the Virtual File that was
requested by the path or a new blank file initialised to that path. | public byte[] | getVirtualFileContent(String sFullPath) | public VirtualFileSystemView | getVirtualFileSystemView() | public void | handleAuthHeaders(Response arg0, RoRequest arg1, AuthorizationInfo arg2, AuthorizationInfo arg3) | public void | handleAuthTrailers(Response arg0, RoRequest arg1, AuthorizationInfo arg2, AuthorizationInfo arg3) | public StatusData | lockVirtualFile(String sPath) | public StatusData | moveVirtualFile(String sFromPath, String sToPath) | public StatusData | orderVirtualFileChildren(List aPaths, VirtualFile vfDir) | protected void | populateLock(Element elLock, VirtualFile vfFile) Fully populates the lock information from a XML element. | public void | populatePropertyInstance(VirtualFile vfFile, Element elProp, PropertyInstance prop, boolean bAddToFile) Populates a property instance from a XML element. | protected void | populateVirtualFile(Element elRoot, VirtualFile vfFile) Populates a virtual file from the given XML. | public StatusData | reactivateVersion(String sFullPath) | protected void | refreshChildren(VirtualFile vfFile) | public boolean | rejectAllChanges() | public ResourceListStatusWrapper | search(Query query) | public StatusData | synchroniseAllFiles() | public StatusData | synchroniseFile(VirtualFile vfFile) | public StatusData | tagVirtualFile(String sPath, String sTag) | public StatusData | uncheckoutVirtualFile(String sPath) | public StatusData | unlockVirtualFile(String sPath) |
WebDAVFileSystem | public WebDAVFileSystem(URI uri)(Code) | | Constructs new WebDAV virtual file system.
Parameters: uri - Location for virtual file system |
WebDAVFileSystem | public WebDAVFileSystem(URI uri, AuthInfo authInfo)(Code) | | Constructs new WebDAV virtual file system.
Parameters: uri - Location for virtual file system Parameters: authInfo - Authentication information for accessing virtual file system |
WebDAVFileSystem | public WebDAVFileSystem(URI uri, AbstractAuthenticationStore authStore)(Code) | | Constructs new WebDAV virtual file system.
Parameters: uri - Location for virtual file system Parameters: authStore - Authentication store containing information for accessing virtual file system |
changeLoginDetails | public void changeLoginDetails(String sUsername, String sPassword)(Code) | | Changes the authentication information being used by this virtual
file system.
Parameters: sUsername - New username Parameters: sPassword - New password |
checkLoginDetails | public boolean checkLoginDetails(String sPath, String sUsername, String sPassword)(Code) | | Attempts to use a username and password to check if they are
valid.
Parameters: sPath - Path to use to check authentication information Parameters: sUsername - Username Parameters: sPassword - Password true if the authentication information was okay |
fixupAuthInfo | public AuthorizationInfo fixupAuthInfo(AuthorizationInfo arg0, RoRequest arg1, AuthorizationInfo arg2, RoResponse arg3) throws AuthSchemeNotImplException, IOException(Code) | | |
fullyPopulateFileAllowedMethods | protected void fullyPopulateFileAllowedMethods(VirtualFile vfFile)(Code) | | |
fullyPopulateFileChildren | protected void fullyPopulateFileChildren(VirtualFile vfFile)(Code) | | |
fullyPopulateFileMetadata | protected void fullyPopulateFileMetadata(VirtualFile vfFile)(Code) | | |
getAuthHeaderValue | public String getAuthHeaderValue()(Code) | | Creates a HTTP authentication header value from the authentication
information for this virtual file system.
HTTP authentication header value |
getAuthorization | public AuthorizationInfo getAuthorization(AuthorizationInfo arg0, RoRequest arg1, RoResponse arg2) throws AuthSchemeNotImplException, IOException(Code) | | |
getChangedVirtualFiles | public List getChangedVirtualFiles()(Code) | | |
getVirtualFile | public ResourceStatusWrapper getVirtualFile(String sPath, List aProps)(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: sPath - Full path to the requested file Parameters: aProps - Properties to be populated in the file |
getVirtualFileContent | public byte[] getVirtualFileContent(String sFullPath)(Code) | | |
handleAuthHeaders | public void handleAuthHeaders(Response arg0, RoRequest arg1, AuthorizationInfo arg2, AuthorizationInfo arg3) throws IOException(Code) | | |
handleAuthTrailers | public void handleAuthTrailers(Response arg0, RoRequest arg1, AuthorizationInfo arg2, AuthorizationInfo arg3) throws IOException(Code) | | |
populateLock | protected void populateLock(Element elLock, VirtualFile vfFile)(Code) | | Fully populates the lock information from a XML element.
Parameters: elLock - Root element of lock information Parameters: vfFile - Virtual file to be populated |
populatePropertyInstance | public void populatePropertyInstance(VirtualFile vfFile, Element elProp, PropertyInstance prop, boolean bAddToFile)(Code) | | Populates a property instance from a XML element.
Parameters: vfFile - Virtual file to add property instance to Parameters: elProp - Root element of property instance XML Parameters: prop - Property instance to be populated Parameters: bAddToFile - true if property instance is to be added to virtual file, false if it is part of a compound property instance |
populateVirtualFile | protected void populateVirtualFile(Element elRoot, VirtualFile vfFile)(Code) | | Populates a virtual file from the given XML.
Parameters: elRoot - Root element of result from WebDAV server Parameters: vfFile - Virtual file to be populated |
rejectAllChanges | public boolean rejectAllChanges()(Code) | | |
Methods inherited from org.openharmonise.vfs.AbstractVirtualFileSystem | public void addErrorListener(VirtualFileSystemErrorListener listener)(Code)(Java Doc) protected void addFileAllowedMethod(VirtualFile vfFile, String sMethod)(Code)(Java Doc) abstract public ResourceStatusWrapper addVirtualFile(String sPath, VirtualFile vfFile)(Code)(Java Doc) protected void clearAllFileProperties(VirtualFile vfFile)(Code)(Java Doc) protected void clearFileAllowedMethods(VirtualFile vfFile)(Code)(Java Doc) protected void clearVirtualFileChildren(VirtualFile vfFile)(Code)(Java Doc) abstract public StatusData copyVirtualFile(String sFromFullPath, String sToFullPath)(Code)(Java Doc) abstract public StatusData createShortcut(String sFullPath, String sToFullPath)(Code)(Java Doc) abstract public StatusData createVirtualDirectory(String sFullPath)(Code)(Java Doc) abstract public String currentUserResourcePath(AuthInfo authInfo)(Code)(Java Doc) abstract public StatusData deleteVirtualFile(String sFullPath)(Code)(Java Doc) public void discardFileChanges(String sPath)(Code)(Java Doc) abstract public boolean exists(String sFullPath)(Code)(Java Doc) protected void fireErrorEvent(String sMessage, String sDetails)(Code)(Java Doc) abstract protected void fullyPopulateFileAllowedMethods(VirtualFile vfFile)(Code)(Java Doc) abstract protected void fullyPopulateFileChildren(VirtualFile vfFile)(Code)(Java Doc) abstract protected void fullyPopulateFileMetadata(VirtualFile vfFile)(Code)(Java Doc) public AuthInfo getAuthentication()(Code)(Java Doc) abstract public List getChangedVirtualFiles()(Code)(Java Doc) public String getInitialPath()(Code)(Java Doc) abstract public ValueInstance getNewValueInstance(PropertyInstance propInst)(Code)(Java Doc) abstract public List getOptions()(Code)(Java Doc) protected String getParentPath(String sFullPath)(Code)(Java Doc) public static List getPathSegments(String sPath, String sPathSeparator)(Code)(Java Doc) abstract public VirtualFile getPropertyVirtualFile(String sPropPath)(Code)(Java Doc) public String getRootPathSegment()(Code)(Java Doc) public URI getURI()(Code)(Java Doc) abstract public ResourceStatusWrapper getVirtualFile(String sFullPath)(Code)(Java Doc) abstract public byte[] getVirtualFileContent(String sFullPath)(Code)(Java Doc) abstract public VirtualFileSystemView getVirtualFileSystemView()(Code)(Java Doc) protected boolean isFileChildrenPopulated(VirtualFile vfFile)(Code)(Java Doc) protected boolean isFileContentPopulated(VirtualFile vfFile)(Code)(Java Doc) protected boolean isFileMetadataPopulated(VirtualFile vfFile)(Code)(Java Doc) abstract public StatusData lockVirtualFile(String sFullPath)(Code)(Java Doc) abstract public StatusData moveVirtualFile(String sFromFullPath, String sToFullPath)(Code)(Java Doc) abstract public StatusData orderVirtualFileChildren(List aPaths, VirtualFile vfDir)(Code)(Java Doc) abstract protected void refreshChildren(VirtualFile vfFile)(Code)(Java Doc) abstract public boolean rejectAllChanges()(Code)(Java Doc) abstract public ResourceListStatusWrapper search(Query query)(Code)(Java Doc) protected void setFileChildrenPopulated(VirtualFile vfFile, boolean bChildrenPopulated)(Code)(Java Doc) protected void setFileContentPopulated(VirtualFile vfFile, boolean bContentPopulated)(Code)(Java Doc) protected void setFileIsVersionable(VirtualFile vfFile, boolean bVersionable)(Code)(Java Doc) protected void setFileMetadataPopulated(VirtualFile vfFile, boolean bMetadataPopulated)(Code)(Java Doc) protected void setFileState(VirtualFile vfFile, String sState)(Code)(Java Doc) protected void setOrderableDirectory(VirtualFile vfFile, boolean bOrderableDirectory)(Code)(Java Doc) abstract public StatusData synchroniseAllFiles()(Code)(Java Doc) abstract public StatusData synchroniseFile(VirtualFile vfFile)(Code)(Java Doc) abstract public StatusData unlockVirtualFile(String sFullPath)(Code)(Java Doc)
|
|
|